diff options
author | AlexRa | 2010-05-01 17:43:10 +0300 |
---|---|---|
committer | AlexRa | 2010-05-18 22:16:06 +0300 |
commit | e4419c34c30e1cf6529ced125f0c05aed24644a4 (patch) | |
tree | b54d5aff69c63fefc27dea2b938c1838974d77ac /OpenSim/Data/MySQL/Resources/009_RegionStore.sql | |
parent | Added MySqlMigrations.cs (supports stored proc/funcs) (diff) | |
download | opensim-SC-e4419c34c30e1cf6529ced125f0c05aed24644a4.zip opensim-SC-e4419c34c30e1cf6529ced125f0c05aed24644a4.tar.gz opensim-SC-e4419c34c30e1cf6529ced125f0c05aed24644a4.tar.bz2 opensim-SC-e4419c34c30e1cf6529ced125f0c05aed24644a4.tar.xz |
Converted MySQL migration history to the new format
Replaced all NNN_StoreName.sql migration resources with a more
readable, single-file-per-store
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/009_RegionStore.sql | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/OpenSim/Data/MySQL/Resources/009_RegionStore.sql b/OpenSim/Data/MySQL/Resources/009_RegionStore.sql deleted file mode 100644 index 284732a..0000000 --- a/OpenSim/Data/MySQL/Resources/009_RegionStore.sql +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | ALTER TABLE primitems change itemID itemIDold varchar(255); | ||
4 | ALTER TABLE primitems change primID primIDold varchar(255); | ||
5 | ALTER TABLE primitems change assetID assetIDold varchar(255); | ||
6 | ALTER TABLE primitems change parentFolderID parentFolderIDold varchar(255); | ||
7 | ALTER TABLE primitems change creatorID creatorIDold varchar(255); | ||
8 | ALTER TABLE primitems change ownerID ownerIDold varchar(255); | ||
9 | ALTER TABLE primitems change groupID groupIDold varchar(255); | ||
10 | ALTER TABLE primitems change lastOwnerID lastOwnerIDold varchar(255); | ||
11 | ALTER TABLE primitems add itemID char(36); | ||
12 | ALTER TABLE primitems add primID char(36); | ||
13 | ALTER TABLE primitems add assetID char(36); | ||
14 | ALTER TABLE primitems add parentFolderID char(36); | ||
15 | ALTER TABLE primitems add creatorID char(36); | ||
16 | ALTER TABLE primitems add ownerID char(36); | ||
17 | ALTER TABLE primitems add groupID char(36); | ||
18 | ALTER TABLE primitems add lastOwnerID char(36); | ||
19 | UPDATE primitems set itemID = itemIDold, primID = primIDold, assetID = assetIDold, parentFolderID = parentFolderIDold, creatorID = creatorIDold, ownerID = ownerIDold, groupID = groupIDold, lastOwnerID = lastOwnerIDold; | ||
20 | ALTER TABLE primitems drop itemIDold; | ||
21 | ALTER TABLE primitems drop primIDold; | ||
22 | ALTER TABLE primitems drop assetIDold; | ||
23 | ALTER TABLE primitems drop parentFolderIDold; | ||
24 | ALTER TABLE primitems drop creatorIDold; | ||
25 | ALTER TABLE primitems drop ownerIDold; | ||
26 | ALTER TABLE primitems drop groupIDold; | ||
27 | ALTER TABLE primitems drop lastOwnerIDold; | ||
28 | ALTER TABLE primitems add constraint primary key(itemID); | ||
29 | ALTER TABLE primitems add index primitems_primid(primID); | ||
30 | |||
31 | COMMIT; \ No newline at end of file | ||