diff options
author | Chris Hart | 2011-09-13 16:55:30 -0400 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-16 19:09:46 +0100 |
commit | d4043c084a86da5f462356ec5c65eab2b861564d (patch) | |
tree | 115685d90fd7c12ce5d7191f0106008bd2f9a1c3 /OpenSim/Data/MSSQL/Resources/InventoryStore.migrations | |
parent | Reattaching a region was failing if the estate name had not changed (issue 50... (diff) | |
download | opensim-SC-d4043c084a86da5f462356ec5c65eab2b861564d.zip opensim-SC-d4043c084a86da5f462356ec5c65eab2b861564d.tar.gz opensim-SC-d4043c084a86da5f462356ec5c65eab2b861564d.tar.bz2 opensim-SC-d4043c084a86da5f462356ec5c65eab2b861564d.tar.xz |
MSSQL Bug fix in user account retrieval, plus migrations for FriendsStore and InventoryStore
Diffstat (limited to 'OpenSim/Data/MSSQL/Resources/InventoryStore.migrations')
-rw-r--r-- | OpenSim/Data/MSSQL/Resources/InventoryStore.migrations | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/Resources/InventoryStore.migrations b/OpenSim/Data/MSSQL/Resources/InventoryStore.migrations index 4a3cb27..4e43653 100644 --- a/OpenSim/Data/MSSQL/Resources/InventoryStore.migrations +++ b/OpenSim/Data/MSSQL/Resources/InventoryStore.migrations | |||
@@ -244,4 +244,36 @@ ALTER TABLE inventoryitems | |||
244 | ADD CONSTRAINT DF_inventoryitems_creatorID | 244 | ADD CONSTRAINT DF_inventoryitems_creatorID |
245 | DEFAULT '00000000-0000-0000-0000-000000000000' FOR creatorID | 245 | DEFAULT '00000000-0000-0000-0000-000000000000' FOR creatorID |
246 | 246 | ||
247 | :GO | ||
248 | |||
249 | :VERSION 9 | ||
250 | |||
251 | BEGIN TRANSACTION | ||
252 | |||
253 | # CreatorID goes up to VARCHAR(255) | ||
254 | |||
255 | exec sp_rename 'inventoryitems.CreatorID', 'cr_old', 'COLUMN' | ||
256 | |||
257 | :GO | ||
258 | |||
259 | alter table inventoryitems | ||
260 | add creatorID varchar(255) NULL | ||
261 | |||
262 | :GO | ||
263 | |||
264 | update inventoryitems set creatorID = cr_old | ||
265 | |||
266 | alter table inventoryitems | ||
267 | drop CONSTRAINT DF_inventoryitems_creatorID | ||
268 | :GO | ||
269 | |||
270 | alter table inventoryitems | ||
271 | drop column cr_old | ||
272 | :GO | ||
273 | COMMIT | ||
274 | |||
275 | ALTER TABLE inventoryitems | ||
276 | ADD CONSTRAINT DF_inventoryitems_creatorID | ||
277 | DEFAULT '00000000-0000-0000-0000-000000000000' FOR creatorID | ||
278 | |||
247 | :GO \ No newline at end of file | 279 | :GO \ No newline at end of file |