diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/RegionStore.migrations | 526 |
1 files changed, 526 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/RegionStore.migrations b/OpenSim/Data/SQLite/Resources/RegionStore.migrations new file mode 100644 index 0000000..7b27378 --- /dev/null +++ b/OpenSim/Data/SQLite/Resources/RegionStore.migrations | |||
@@ -0,0 +1,526 @@ | |||
1 | :VERSION 1 | ||
2 | |||
3 | BEGIN TRANSACTION; | ||
4 | |||
5 | CREATE TABLE prims( | ||
6 | UUID varchar(255) primary key, | ||
7 | RegionUUID varchar(255), | ||
8 | ParentID integer, | ||
9 | CreationDate integer, | ||
10 | Name varchar(255), | ||
11 | SceneGroupID varchar(255), | ||
12 | Text varchar(255), | ||
13 | Description varchar(255), | ||
14 | SitName varchar(255), | ||
15 | TouchName varchar(255), | ||
16 | CreatorID varchar(255), | ||
17 | OwnerID varchar(255), | ||
18 | GroupID varchar(255), | ||
19 | LastOwnerID varchar(255), | ||
20 | OwnerMask integer, | ||
21 | NextOwnerMask integer, | ||
22 | GroupMask integer, | ||
23 | EveryoneMask integer, | ||
24 | BaseMask integer, | ||
25 | PositionX float, | ||
26 | PositionY float, | ||
27 | PositionZ float, | ||
28 | GroupPositionX float, | ||
29 | GroupPositionY float, | ||
30 | GroupPositionZ float, | ||
31 | VelocityX float, | ||
32 | VelocityY float, | ||
33 | VelocityZ float, | ||
34 | AngularVelocityX float, | ||
35 | AngularVelocityY float, | ||
36 | AngularVelocityZ float, | ||
37 | AccelerationX float, | ||
38 | AccelerationY float, | ||
39 | AccelerationZ float, | ||
40 | RotationX float, | ||
41 | RotationY float, | ||
42 | RotationZ float, | ||
43 | RotationW float, | ||
44 | ObjectFlags integer, | ||
45 | SitTargetOffsetX float NOT NULL default 0, | ||
46 | SitTargetOffsetY float NOT NULL default 0, | ||
47 | SitTargetOffsetZ float NOT NULL default 0, | ||
48 | SitTargetOrientW float NOT NULL default 0, | ||
49 | SitTargetOrientX float NOT NULL default 0, | ||
50 | SitTargetOrientY float NOT NULL default 0, | ||
51 | SitTargetOrientZ float NOT NULL default 0); | ||
52 | |||
53 | CREATE TABLE primshapes( | ||
54 | UUID varchar(255) primary key, | ||
55 | Shape integer, | ||
56 | ScaleX float, | ||
57 | ScaleY float, | ||
58 | ScaleZ float, | ||
59 | PCode integer, | ||
60 | PathBegin integer, | ||
61 | PathEnd integer, | ||
62 | PathScaleX integer, | ||
63 | PathScaleY integer, | ||
64 | PathShearX integer, | ||
65 | PathShearY integer, | ||
66 | PathSkew integer, | ||
67 | PathCurve integer, | ||
68 | PathRadiusOffset integer, | ||
69 | PathRevolutions integer, | ||
70 | PathTaperX integer, | ||
71 | PathTaperY integer, | ||
72 | PathTwist integer, | ||
73 | PathTwistBegin integer, | ||
74 | ProfileBegin integer, | ||
75 | ProfileEnd integer, | ||
76 | ProfileCurve integer, | ||
77 | ProfileHollow integer, | ||
78 | Texture blob, | ||
79 | ExtraParams blob, | ||
80 | State Integer NOT NULL default 0); | ||
81 | |||
82 | CREATE TABLE primitems( | ||
83 | itemID varchar(255) primary key, | ||
84 | primID varchar(255), | ||
85 | assetID varchar(255), | ||
86 | parentFolderID varchar(255), | ||
87 | invType integer, | ||
88 | assetType integer, | ||
89 | name varchar(255), | ||
90 | description varchar(255), | ||
91 | creationDate integer, | ||
92 | creatorID varchar(255), | ||
93 | ownerID varchar(255), | ||
94 | lastOwnerID varchar(255), | ||
95 | groupID varchar(255), | ||
96 | nextPermissions string, | ||
97 | currentPermissions string, | ||
98 | basePermissions string, | ||
99 | everyonePermissions string, | ||
100 | groupPermissions string); | ||
101 | |||
102 | CREATE TABLE terrain( | ||
103 | RegionUUID varchar(255), | ||
104 | Revision integer, | ||
105 | Heightfield blob); | ||
106 | |||
107 | CREATE TABLE land( | ||
108 | UUID varchar(255) primary key, | ||
109 | RegionUUID varchar(255), | ||
110 | LocalLandID string, | ||
111 | Bitmap blob, | ||
112 | Name varchar(255), | ||
113 | Desc varchar(255), | ||
114 | OwnerUUID varchar(255), | ||
115 | IsGroupOwned string, | ||
116 | Area integer, | ||
117 | AuctionID integer, | ||
118 | Category integer, | ||
119 | ClaimDate integer, | ||
120 | ClaimPrice integer, | ||
121 | GroupUUID varchar(255), | ||
122 | SalePrice integer, | ||
123 | LandStatus integer, | ||
124 | LandFlags string, | ||
125 | LandingType string, | ||
126 | MediaAutoScale string, | ||
127 | MediaTextureUUID varchar(255), | ||
128 | MediaURL varchar(255), | ||
129 | MusicURL varchar(255), | ||
130 | PassHours float, | ||
131 | PassPrice string, | ||
132 | SnapshotUUID varchar(255), | ||
133 | UserLocationX float, | ||
134 | UserLocationY float, | ||
135 | UserLocationZ float, | ||
136 | UserLookAtX float, | ||
137 | UserLookAtY float, | ||
138 | UserLookAtZ float, | ||
139 | AuthbuyerID varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000'); | ||
140 | |||
141 | CREATE TABLE landaccesslist( | ||
142 | LandUUID varchar(255), | ||
143 | AccessUUID varchar(255), | ||
144 | Flags string); | ||
145 | |||
146 | COMMIT; | ||
147 | |||
148 | :VERSION 2 | ||
149 | |||
150 | BEGIN TRANSACTION; | ||
151 | |||
152 | CREATE TABLE regionban( | ||
153 | regionUUID varchar (255), | ||
154 | bannedUUID varchar (255), | ||
155 | bannedIp varchar (255), | ||
156 | bannedIpHostMask varchar (255) | ||
157 | ); | ||
158 | |||
159 | COMMIT; | ||
160 | |||
161 | :VERSION 3 | ||
162 | |||
163 | BEGIN; | ||
164 | |||
165 | ALTER TABLE primitems add flags integer not null default 0; | ||
166 | |||
167 | COMMIT; | ||
168 | |||
169 | :VERSION 4 | ||
170 | |||
171 | BEGIN; | ||
172 | |||
173 | create table regionsettings ( | ||
174 | regionUUID char(36) not null, | ||
175 | block_terraform integer not null, | ||
176 | block_fly integer not null, | ||
177 | allow_damage integer not null, | ||
178 | restrict_pushing integer not null, | ||
179 | allow_land_resell integer not null, | ||
180 | allow_land_join_divide integer not null, | ||
181 | block_show_in_search integer not null, | ||
182 | agent_limit integer not null, | ||
183 | object_bonus float not null, | ||
184 | maturity integer not null, | ||
185 | disable_scripts integer not null, | ||
186 | disable_collisions integer not null, | ||
187 | disable_physics integer not null, | ||
188 | terrain_texture_1 char(36) not null, | ||
189 | terrain_texture_2 char(36) not null, | ||
190 | terrain_texture_3 char(36) not null, | ||
191 | terrain_texture_4 char(36) not null, | ||
192 | elevation_1_nw float not null, | ||
193 | elevation_2_nw float not null, | ||
194 | elevation_1_ne float not null, | ||
195 | elevation_2_ne float not null, | ||
196 | elevation_1_se float not null, | ||
197 | elevation_2_se float not null, | ||
198 | elevation_1_sw float not null, | ||
199 | elevation_2_sw float not null, | ||
200 | water_height float not null, | ||
201 | terrain_raise_limit float not null, | ||
202 | terrain_lower_limit float not null, | ||
203 | use_estate_sun integer not null, | ||
204 | fixed_sun integer not null, | ||
205 | sun_position float not null, | ||
206 | covenant char(36)); | ||
207 | |||
208 | COMMIT; | ||
209 | |||
210 | :VERSION 5 | ||
211 | |||
212 | BEGIN; | ||
213 | |||
214 | delete from regionsettings; | ||
215 | |||
216 | COMMIT; | ||
217 | |||
218 | :VERSION 6 | ||
219 | |||
220 | BEGIN TRANSACTION; | ||
221 | |||
222 | CREATE TABLE estate_groups ( | ||
223 | EstateID int(10) NOT NULL, | ||
224 | uuid char(36) NOT NULL | ||
225 | ); | ||
226 | |||
227 | CREATE TABLE estate_managers ( | ||
228 | EstateID int(10) NOT NULL, | ||
229 | uuid char(36) NOT NULL | ||
230 | ); | ||
231 | |||
232 | CREATE TABLE estate_map ( | ||
233 | RegionID char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', | ||
234 | EstateID int(11) NOT NULL | ||
235 | ); | ||
236 | |||
237 | CREATE TABLE estate_settings ( | ||
238 | EstateID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
239 | EstateName varchar(64) default NULL, | ||
240 | AbuseEmailToEstateOwner tinyint(4) NOT NULL, | ||
241 | DenyAnonymous tinyint(4) NOT NULL, | ||
242 | ResetHomeOnTeleport tinyint(4) NOT NULL, | ||
243 | FixedSun tinyint(4) NOT NULL, | ||
244 | DenyTransacted tinyint(4) NOT NULL, | ||
245 | BlockDwell tinyint(4) NOT NULL, | ||
246 | DenyIdentified tinyint(4) NOT NULL, | ||
247 | AllowVoice tinyint(4) NOT NULL, | ||
248 | UseGlobalTime tinyint(4) NOT NULL, | ||
249 | PricePerMeter int(11) NOT NULL, | ||
250 | TaxFree tinyint(4) NOT NULL, | ||
251 | AllowDirectTeleport tinyint(4) NOT NULL, | ||
252 | RedirectGridX int(11) NOT NULL, | ||
253 | RedirectGridY int(11) NOT NULL, | ||
254 | ParentEstateID int(10) NOT NULL, | ||
255 | SunPosition double NOT NULL, | ||
256 | EstateSkipScripts tinyint(4) NOT NULL, | ||
257 | BillableFactor float NOT NULL, | ||
258 | PublicAccess tinyint(4) NOT NULL | ||
259 | ); | ||
260 | insert into estate_settings (EstateID,EstateName,AbuseEmailToEstateOwner,DenyAnonymous,ResetHomeOnTeleport,FixedSun,DenyTransacted,BlockDwell,DenyIdentified,AllowVoice,UseGlobalTime,PricePerMeter,TaxFree,AllowDirectTeleport,RedirectGridX,RedirectGridY,ParentEstateID,SunPosition,PublicAccess,EstateSkipScripts,BillableFactor) values ( 99, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); | ||
261 | delete from estate_settings; | ||
262 | CREATE TABLE estate_users ( | ||
263 | EstateID int(10) NOT NULL, | ||
264 | uuid char(36) NOT NULL | ||
265 | ); | ||
266 | |||
267 | CREATE TABLE estateban ( | ||
268 | EstateID int(10) NOT NULL, | ||
269 | bannedUUID varchar(36) NOT NULL, | ||
270 | bannedIp varchar(16) NOT NULL, | ||
271 | bannedIpHostMask varchar(16) NOT NULL, | ||
272 | bannedNameMask varchar(64) default NULL | ||
273 | ); | ||
274 | |||
275 | drop table regionsettings; | ||
276 | CREATE TABLE regionsettings ( | ||
277 | regionUUID char(36) NOT NULL, | ||
278 | block_terraform int(11) NOT NULL, | ||
279 | block_fly int(11) NOT NULL, | ||
280 | allow_damage int(11) NOT NULL, | ||
281 | restrict_pushing int(11) NOT NULL, | ||
282 | allow_land_resell int(11) NOT NULL, | ||
283 | allow_land_join_divide int(11) NOT NULL, | ||
284 | block_show_in_search int(11) NOT NULL, | ||
285 | agent_limit int(11) NOT NULL, | ||
286 | object_bonus float NOT NULL, | ||
287 | maturity int(11) NOT NULL, | ||
288 | disable_scripts int(11) NOT NULL, | ||
289 | disable_collisions int(11) NOT NULL, | ||
290 | disable_physics int(11) NOT NULL, | ||
291 | terrain_texture_1 char(36) NOT NULL, | ||
292 | terrain_texture_2 char(36) NOT NULL, | ||
293 | terrain_texture_3 char(36) NOT NULL, | ||
294 | terrain_texture_4 char(36) NOT NULL, | ||
295 | elevation_1_nw float NOT NULL, | ||
296 | elevation_2_nw float NOT NULL, | ||
297 | elevation_1_ne float NOT NULL, | ||
298 | elevation_2_ne float NOT NULL, | ||
299 | elevation_1_se float NOT NULL, | ||
300 | elevation_2_se float NOT NULL, | ||
301 | elevation_1_sw float NOT NULL, | ||
302 | elevation_2_sw float NOT NULL, | ||
303 | water_height float NOT NULL, | ||
304 | terrain_raise_limit float NOT NULL, | ||
305 | terrain_lower_limit float NOT NULL, | ||
306 | use_estate_sun int(11) NOT NULL, | ||
307 | fixed_sun int(11) NOT NULL, | ||
308 | sun_position float NOT NULL, | ||
309 | covenant char(36) default NULL, | ||
310 | Sandbox tinyint(4) NOT NULL, | ||
311 | PRIMARY KEY (regionUUID) | ||
312 | ); | ||
313 | |||
314 | CREATE INDEX estate_ban_estate_id on estateban(EstateID); | ||
315 | CREATE INDEX estate_groups_estate_id on estate_groups(EstateID); | ||
316 | CREATE INDEX estate_managers_estate_id on estate_managers(EstateID); | ||
317 | CREATE INDEX estate_map_estate_id on estate_map(EstateID); | ||
318 | CREATE UNIQUE INDEX estate_map_region_id on estate_map(RegionID); | ||
319 | CREATE INDEX estate_users_estate_id on estate_users(EstateID); | ||
320 | |||
321 | COMMIT; | ||
322 | |||
323 | :VERSION 7 | ||
324 | |||
325 | begin; | ||
326 | |||
327 | alter table estate_settings add column AbuseEmail varchar(255) not null default ''; | ||
328 | |||
329 | alter table estate_settings add column EstateOwner varchar(36) not null default ''; | ||
330 | |||
331 | commit; | ||
332 | |||
333 | :VERSION 8 | ||
334 | |||
335 | begin; | ||
336 | |||
337 | alter table estate_settings add column DenyMinors tinyint not null default 0; | ||
338 | |||
339 | commit; | ||
340 | |||
341 | :VERSION 9 | ||
342 | |||
343 | BEGIN; | ||
344 | |||
345 | ALTER TABLE prims ADD COLUMN ColorR integer not null default 0; | ||
346 | ALTER TABLE prims ADD COLUMN ColorG integer not null default 0; | ||
347 | ALTER TABLE prims ADD COLUMN ColorB integer not null default 0; | ||
348 | ALTER TABLE prims ADD COLUMN ColorA integer not null default 0; | ||
349 | |||
350 | COMMIT; | ||
351 | |||
352 | :VERSION 10 | ||
353 | |||
354 | BEGIN; | ||
355 | |||
356 | ALTER TABLE prims ADD COLUMN ClickAction INTEGER NOT NULL default 0; | ||
357 | |||
358 | COMMIT; | ||
359 | |||
360 | :VERSION 11 | ||
361 | |||
362 | BEGIN; | ||
363 | |||
364 | ALTER TABLE prims ADD COLUMN PayPrice INTEGER NOT NULL default 0; | ||
365 | ALTER TABLE prims ADD COLUMN PayButton1 INTEGER NOT NULL default 0; | ||
366 | ALTER TABLE prims ADD COLUMN PayButton2 INTEGER NOT NULL default 0; | ||
367 | ALTER TABLE prims ADD COLUMN PayButton3 INTEGER NOT NULL default 0; | ||
368 | ALTER TABLE prims ADD COLUMN PayButton4 INTEGER NOT NULL default 0; | ||
369 | ALTER TABLE prims ADD COLUMN LoopedSound varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000'; | ||
370 | ALTER TABLE prims ADD COLUMN LoopedSoundGain float NOT NULL default 0; | ||
371 | ALTER TABLE prims ADD COLUMN TextureAnimation string; | ||
372 | ALTER TABLE prims ADD COLUMN ParticleSystem string; | ||
373 | ALTER TABLE prims ADD COLUMN OmegaX float NOT NULL default 0; | ||
374 | ALTER TABLE prims ADD COLUMN OmegaY float NOT NULL default 0; | ||
375 | ALTER TABLE prims ADD COLUMN OmegaZ float NOT NULL default 0; | ||
376 | ALTER TABLE prims ADD COLUMN CameraEyeOffsetX float NOT NULL default 0; | ||
377 | ALTER TABLE prims ADD COLUMN CameraEyeOffsetY float NOT NULL default 0; | ||
378 | ALTER TABLE prims ADD COLUMN CameraEyeOffsetZ float NOT NULL default 0; | ||
379 | ALTER TABLE prims ADD COLUMN CameraAtOffsetX float NOT NULL default 0; | ||
380 | ALTER TABLE prims ADD COLUMN CameraAtOffsetY float NOT NULL default 0; | ||
381 | ALTER TABLE prims ADD COLUMN CameraAtOffsetZ float NOT NULL default 0; | ||
382 | ALTER TABLE prims ADD COLUMN ForceMouselook string NOT NULL default 0; | ||
383 | ALTER TABLE prims ADD COLUMN ScriptAccessPin INTEGER NOT NULL default 0; | ||
384 | ALTER TABLE prims ADD COLUMN AllowedDrop INTEGER NOT NULL default 0; | ||
385 | ALTER TABLE prims ADD COLUMN DieAtEdge string NOT NULL default 0; | ||
386 | ALTER TABLE prims ADD COLUMN SalePrice INTEGER NOT NULL default 0; | ||
387 | ALTER TABLE prims ADD COLUMN SaleType string NOT NULL default 0; | ||
388 | |||
389 | COMMIT; | ||
390 | |||
391 | :VERSION 12 | ||
392 | |||
393 | BEGIN; | ||
394 | |||
395 | ALTER TABLE prims ADD COLUMN Material INTEGER NOT NULL default 3; | ||
396 | |||
397 | COMMIT; | ||
398 | |||
399 | :VERSION 13 | ||
400 | |||
401 | BEGIN; | ||
402 | |||
403 | ALTER TABLE land ADD COLUMN OtherCleanTime INTEGER NOT NULL default 0; | ||
404 | ALTER TABLE land ADD COLUMN Dwell INTEGER NOT NULL default 0; | ||
405 | |||
406 | COMMIT; | ||
407 | |||
408 | :VERSION 14 | ||
409 | |||
410 | begin; | ||
411 | |||
412 | ALTER TABLE regionsettings ADD COLUMN sunvectorx double NOT NULL default 0; | ||
413 | ALTER TABLE regionsettings ADD COLUMN sunvectory double NOT NULL default 0; | ||
414 | ALTER TABLE regionsettings ADD COLUMN sunvectorz double NOT NULL default 0; | ||
415 | |||
416 | commit; | ||
417 | |||
418 | :VERSION 15 | ||
419 | |||
420 | BEGIN; | ||
421 | |||
422 | ALTER TABLE prims ADD COLUMN CollisionSound varchar(36) NOT NULL default '00000000-0000-0000-0000-000000000000'; | ||
423 | ALTER TABLE prims ADD COLUMN CollisionSoundVolume float NOT NULL default 0; | ||
424 | |||
425 | COMMIT; | ||
426 | |||
427 | :VERSION 16 | ||
428 | |||
429 | BEGIN; | ||
430 | |||
431 | ALTER TABLE prims ADD COLUMN VolumeDetect INTEGER NOT NULL DEFAULT 0; | ||
432 | |||
433 | COMMIT; | ||
434 | |||
435 | :VERSION 17 | ||
436 | |||
437 | BEGIN; | ||
438 | CREATE TEMPORARY TABLE prims_backup(UUID,RegionUUID,CreationDate,Name,SceneGroupID,Text,Description,SitName,TouchName,CreatorID,OwnerID,GroupID,LastOwnerID,OwnerMask,NextOwnerMask,GroupMask,EveryoneMask,BaseMask,PositionX,PositionY,PositionZ,GroupPositionX,GroupPositionY,GroupPositionZ,VelocityX,VelocityY,VelocityZ,AngularVelocityX,AngularVelocityY,AngularVelocityZ,AccelerationX,AccelerationY,AccelerationZ,RotationX,RotationY,RotationZ,RotationW,ObjectFlags,SitTargetOffsetX,SitTargetOffsetY,SitTargetOffsetZ,SitTargetOrientW,SitTargetOrientX,SitTargetOrientY,SitTargetOrientZ,ColorR,ColorG,ColorB,ColorA,ClickAction,PayPrice,PayButton1,PayButton2,PayButton3,PayButton4,LoopedSound,LoopedSoundGain,TextureAnimation,ParticleSystem,OmegaX,OmegaY,OmegaZ,CameraEyeOffsetX,CameraEyeOffsetY,CameraEyeOffsetZ,CameraAtOffsetX,CameraAtOffsetY,CameraAtOffsetZ,ForceMouselook,ScriptAccessPin,AllowedDrop,DieAtEdge,SalePrice,SaleType,Material,CollisionSound,CollisionSoundVolume,VolumeDetect); | ||
439 | INSERT INTO prims_backup SELECT UUID,RegionUUID,CreationDate,Name,SceneGroupID,Text,Description,SitName,TouchName,CreatorID,OwnerID,GroupID,LastOwnerID,OwnerMask,NextOwnerMask,GroupMask,EveryoneMask,BaseMask,PositionX,PositionY,PositionZ,GroupPositionX,GroupPositionY,GroupPositionZ,VelocityX,VelocityY,VelocityZ,AngularVelocityX,AngularVelocityY,AngularVelocityZ,AccelerationX,AccelerationY,AccelerationZ,RotationX,RotationY,RotationZ,RotationW,ObjectFlags,SitTargetOffsetX,SitTargetOffsetY,SitTargetOffsetZ,SitTargetOrientW,SitTargetOrientX,SitTargetOrientY,SitTargetOrientZ,ColorR,ColorG,ColorB,ColorA,ClickAction,PayPrice,PayButton1,PayButton2,PayButton3,PayButton4,LoopedSound,LoopedSoundGain,TextureAnimation,ParticleSystem,OmegaX,OmegaY,OmegaZ,CameraEyeOffsetX,CameraEyeOffsetY,CameraEyeOffsetZ,CameraAtOffsetX,CameraAtOffsetY,CameraAtOffsetZ,ForceMouselook,ScriptAccessPin,AllowedDrop,DieAtEdge,SalePrice,SaleType,Material,CollisionSound,CollisionSoundVolume,VolumeDetect FROM prims; | ||
440 | DROP TABLE prims; | ||
441 | CREATE TABLE prims(UUID,RegionUUID,CreationDate,Name,SceneGroupID,Text,Description,SitName,TouchName,CreatorID,OwnerID,GroupID,LastOwnerID,OwnerMask,NextOwnerMask,GroupMask,EveryoneMask,BaseMask,PositionX,PositionY,PositionZ,GroupPositionX,GroupPositionY,GroupPositionZ,VelocityX,VelocityY,VelocityZ,AngularVelocityX,AngularVelocityY,AngularVelocityZ,AccelerationX,AccelerationY,AccelerationZ,RotationX,RotationY,RotationZ,RotationW,ObjectFlags,SitTargetOffsetX,SitTargetOffsetY,SitTargetOffsetZ,SitTargetOrientW,SitTargetOrientX,SitTargetOrientY,SitTargetOrientZ,ColorR,ColorG,ColorB,ColorA,ClickAction,PayPrice,PayButton1,PayButton2,PayButton3,PayButton4,LoopedSound,LoopedSoundGain,TextureAnimation,ParticleSystem,OmegaX,OmegaY,OmegaZ,CameraEyeOffsetX,CameraEyeOffsetY,CameraEyeOffsetZ,CameraAtOffsetX,CameraAtOffsetY,CameraAtOffsetZ,ForceMouselook,ScriptAccessPin,AllowedDrop,DieAtEdge,SalePrice,SaleType,Material,CollisionSound,CollisionSoundVolume,VolumeDetect); | ||
442 | INSERT INTO prims SELECT UUID,RegionUUID,CreationDate,Name,SceneGroupID,Text,Description,SitName,TouchName,CreatorID,OwnerID,GroupID,LastOwnerID,OwnerMask,NextOwnerMask,GroupMask,EveryoneMask,BaseMask,PositionX,PositionY,PositionZ,GroupPositionX,GroupPositionY,GroupPositionZ,VelocityX,VelocityY,VelocityZ,AngularVelocityX,AngularVelocityY,AngularVelocityZ,AccelerationX,AccelerationY,AccelerationZ,RotationX,RotationY,RotationZ,RotationW,ObjectFlags,SitTargetOffsetX,SitTargetOffsetY,SitTargetOffsetZ,SitTargetOrientW,SitTargetOrientX,SitTargetOrientY,SitTargetOrientZ,ColorR,ColorG,ColorB,ColorA,ClickAction,PayPrice,PayButton1,PayButton2,PayButton3,PayButton4,LoopedSound,LoopedSoundGain,TextureAnimation,ParticleSystem,OmegaX,OmegaY,OmegaZ,CameraEyeOffsetX,CameraEyeOffsetY,CameraEyeOffsetZ,CameraAtOffsetX,CameraAtOffsetY,CameraAtOffsetZ,ForceMouselook,ScriptAccessPin,AllowedDrop,DieAtEdge,SalePrice,SaleType,Material,CollisionSound,CollisionSoundVolume,VolumeDetect FROM prims_backup; | ||
443 | DROP TABLE prims_backup; | ||
444 | COMMIT; | ||
445 | |||
446 | :VERSION 18 | ||
447 | |||
448 | BEGIN; | ||
449 | |||
450 | update terrain | ||
451 | set RegionUUID = substr(RegionUUID, 1, 8) || "-" || substr(RegionUUID, 9, 4) || "-" || substr(RegionUUID, 13, 4) || "-" || substr(RegionUUID, 17, 4) || "-" || substr(RegionUUID, 21, 12) | ||
452 | where RegionUUID not like '%-%'; | ||
453 | |||
454 | |||
455 | update landaccesslist | ||
456 | set LandUUID = substr(LandUUID, 1, 8) || "-" || substr(LandUUID, 9, 4) || "-" || substr(LandUUID, 13, 4) || "-" || substr(LandUUID, 17, 4) || "-" || substr(LandUUID, 21, 12) | ||
457 | where LandUUID not like '%-%'; | ||
458 | |||
459 | update landaccesslist | ||
460 | set AccessUUID = substr(AccessUUID, 1, 8) || "-" || substr(AccessUUID, 9, 4) || "-" || substr(AccessUUID, 13, 4) || "-" || substr(AccessUUID, 17, 4) || "-" || substr(AccessUUID, 21, 12) | ||
461 | where AccessUUID not like '%-%'; | ||
462 | |||
463 | |||
464 | update prims | ||
465 | set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21, 12) | ||
466 | where UUID not like '%-%'; | ||
467 | |||
468 | update prims | ||
469 | set RegionUUID = substr(RegionUUID, 1, 8) || "-" || substr(RegionUUID, 9, 4) || "-" || substr(RegionUUID, 13, 4) || "-" || substr(RegionUUID, 17, 4) || "-" || substr(RegionUUID, 21, 12) | ||
470 | where RegionUUID not like '%-%'; | ||
471 | |||
472 | update prims | ||
473 | set SceneGroupID = substr(SceneGroupID, 1, 8) || "-" || substr(SceneGroupID, 9, 4) || "-" || substr(SceneGroupID, 13, 4) || "-" || substr(SceneGroupID, 17, 4) || "-" || substr(SceneGroupID, 21, 12) | ||
474 | where SceneGroupID not like '%-%'; | ||
475 | |||
476 | update prims | ||
477 | set CreatorID = substr(CreatorID, 1, 8) || "-" || substr(CreatorID, 9, 4) || "-" || substr(CreatorID, 13, 4) || "-" || substr(CreatorID, 17, 4) || "-" || substr(CreatorID, 21, 12) | ||
478 | where CreatorID not like '%-%'; | ||
479 | |||
480 | update prims | ||
481 | set OwnerID = substr(OwnerID, 1, 8) || "-" || substr(OwnerID, 9, 4) || "-" || substr(OwnerID, 13, 4) || "-" || substr(OwnerID, 17, 4) || "-" || substr(OwnerID, 21, 12) | ||
482 | where OwnerID not like '%-%'; | ||
483 | |||
484 | update prims | ||
485 | set GroupID = substr(GroupID, 1, 8) || "-" || substr(GroupID, 9, 4) || "-" || substr(GroupID, 13, 4) || "-" || substr(GroupID, 17, 4) || "-" || substr(GroupID, 21, 12) | ||
486 | where GroupID not like '%-%'; | ||
487 | |||
488 | update prims | ||
489 | set LastOwnerID = substr(LastOwnerID, 1, 8) || "-" || substr(LastOwnerID, 9, 4) || "-" || substr(LastOwnerID, 13, 4) || "-" || substr(LastOwnerID, 17, 4) || "-" || substr(LastOwnerID, 21, 12) | ||
490 | where LastOwnerID not like '%-%'; | ||
491 | |||
492 | |||
493 | update primshapes | ||
494 | set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21, 12) | ||
495 | where UUID not like '%-%'; | ||
496 | |||
497 | |||
498 | update land | ||
499 | set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21, 12) | ||
500 | where UUID not like '%-%'; | ||
501 | |||
502 | update land | ||
503 | set RegionUUID = substr(RegionUUID, 1, 8) || "-" || substr(RegionUUID, 9, 4) || "-" || substr(RegionUUID, 13, 4) || "-" || substr(RegionUUID, 17, 4) || "-" || substr(RegionUUID, 21, 12) | ||
504 | where RegionUUID not like '%-%'; | ||
505 | |||
506 | update land | ||
507 | set OwnerUUID = substr(OwnerUUID, 1, 8) || "-" || substr(OwnerUUID, 9, 4) || "-" || substr(OwnerUUID, 13, 4) || "-" || substr(OwnerUUID, 17, 4) || "-" || substr(OwnerUUID, 21, 12) | ||
508 | where OwnerUUID not like '%-%'; | ||
509 | |||
510 | update land | ||
511 | set GroupUUID = substr(GroupUUID, 1, 8) || "-" || substr(GroupUUID, 9, 4) || "-" || substr(GroupUUID, 13, 4) || "-" || substr(GroupUUID, 17, 4) || "-" || substr(GroupUUID, 21, 12) | ||
512 | where GroupUUID not like '%-%'; | ||
513 | |||
514 | update land | ||
515 | set MediaTextureUUID = substr(MediaTextureUUID, 1, 8) || "-" || substr(MediaTextureUUID, 9, 4) || "-" || substr(MediaTextureUUID, 13, 4) || "-" || substr(MediaTextureUUID, 17, 4) || "-" || substr(MediaTextureUUID, 21, 12) | ||
516 | where MediaTextureUUID not like '%-%'; | ||
517 | |||
518 | update land | ||
519 | set SnapshotUUID = substr(SnapshotUUID, 1, 8) || "-" || substr(SnapshotUUID, 9, 4) || "-" || substr(SnapshotUUID, 13, 4) || "-" || substr(SnapshotUUID, 17, 4) || "-" || substr(SnapshotUUID, 21, 12) | ||
520 | where SnapshotUUID not like '%-%'; | ||
521 | |||
522 | update land | ||
523 | set AuthbuyerID = substr(AuthbuyerID, 1, 8) || "-" || substr(AuthbuyerID, 9, 4) || "-" || substr(AuthbuyerID, 13, 4) || "-" || substr(AuthbuyerID, 17, 4) || "-" || substr(AuthbuyerID, 21, 12) | ||
524 | where AuthbuyerID not like '%-%'; | ||
525 | |||
526 | COMMIT; | ||