From 9052c43319ab69f57b80e363d965780be625b0e2 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Wed, 2 Jul 2008 16:20:54 +0000
Subject: * Drop InvType from the assets table since it is no longer used *
 Migration should be automatic on sqlite and mysql * Migration is not
 automatic on mssql, you will need to drop the invType column manually *
 Migration should be fine, but as for any db change, I would recommend making
 sure you have backups before moving past this revision

---
 OpenSim/Data/SQLite/Resources/002_AssetStore.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 OpenSim/Data/SQLite/Resources/002_AssetStore.sql

(limited to 'OpenSim/Data/SQLite/Resources/002_AssetStore.sql')

diff --git a/OpenSim/Data/SQLite/Resources/002_AssetStore.sql b/OpenSim/Data/SQLite/Resources/002_AssetStore.sql
new file mode 100644
index 0000000..41ca640
--- /dev/null
+++ b/OpenSim/Data/SQLite/Resources/002_AssetStore.sql
@@ -0,0 +1,10 @@
+BEGIN TRANSACTION;
+
+CREATE TEMPORARY TABLE assets_backup(UUID,Name,Description,Type,Local,Temporary,Data);
+INSERT INTO assets_backup SELECT UUID,Name,Description,Type,Local,Temporary,Data FROM assets;
+DROP TABLE assets;
+CREATE TABLE assets(UUID,Name,Description,Type,Local,Temporary,Data);
+INSERT INTO assets SELECT UUID,Name,Description,Type,Local,Temporary,Data FROM assets_backup;
+DROP TABLE assets_backup;
+
+COMMIT;
-- 
cgit v1.1

