diff options
author | Melanie Thielker | 2008-11-26 09:05:11 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-26 09:05:11 +0000 |
commit | 841c53003f74ef98f50590d854df7a199803dc36 (patch) | |
tree | 2fa3186b3694597253f5680c5c7a8a13e8ba2f51 | |
parent | Fix 2 of the failed tests. Cause terrain queries to return null when no (diff) | |
download | opensim-SC_OLD-841c53003f74ef98f50590d854df7a199803dc36.zip opensim-SC_OLD-841c53003f74ef98f50590d854df7a199803dc36.tar.gz opensim-SC_OLD-841c53003f74ef98f50590d854df7a199803dc36.tar.bz2 opensim-SC_OLD-841c53003f74ef98f50590d854df7a199803dc36.tar.xz |
A migration to convert the floats int the database to doubles.
Maybe we don't have to say "Shift happens" as often anymore....
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/024_RegionStore.sql | 18 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/Resources/025_RegionStore.sql | 42 |
2 files changed, 60 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/024_RegionStore.sql b/OpenSim/Data/MySQL/Resources/024_RegionStore.sql new file mode 100644 index 0000000..defbf5c --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/024_RegionStore.sql | |||
@@ -0,0 +1,18 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | alter table regionsettings change column `object_bonus` `object_bonus` double NOT NULL; | ||
4 | alter table regionsettings change column `elevation_1_nw` `elevation_1_nw` double NOT NULL; | ||
5 | alter table regionsettings change column `elevation_2_nw` `elevation_2_nw` double NOT NULL; | ||
6 | alter table regionsettings change column `elevation_1_ne` `elevation_1_ne` double NOT NULL; | ||
7 | alter table regionsettings change column `elevation_2_ne` `elevation_2_ne` double NOT NULL; | ||
8 | alter table regionsettings change column `elevation_1_se` `elevation_1_se` double NOT NULL; | ||
9 | alter table regionsettings change column `elevation_2_se` `elevation_2_se` double NOT NULL; | ||
10 | alter table regionsettings change column `elevation_1_sw` `elevation_1_sw` double NOT NULL; | ||
11 | alter table regionsettings change column `elevation_2_sw` `elevation_2_sw` double NOT NULL; | ||
12 | alter table regionsettings change column `water_height` `water_height` double NOT NULL; | ||
13 | alter table regionsettings change column `terrain_raise_limit` `terrain_raise_limit` double NOT NULL; | ||
14 | alter table regionsettings change column `terrain_lower_limit` `terrain_lower_limit` double NOT NULL; | ||
15 | alter table regionsettings change column `sun_position` `sun_position` double NOT NULL; | ||
16 | |||
17 | COMMIT; | ||
18 | |||
diff --git a/OpenSim/Data/MySQL/Resources/025_RegionStore.sql b/OpenSim/Data/MySQL/Resources/025_RegionStore.sql new file mode 100644 index 0000000..47fb6dd --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/025_RegionStore.sql | |||
@@ -0,0 +1,42 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | alter table prims change column `PositionX` `PositionX` float default NULL; | ||
4 | alter table prims change column `PositionY` `PositionY` float default NULL; | ||
5 | alter table prims change column `PositionZ` `PositionZ` float default NULL; | ||
6 | alter table prims change column `GroupPositionX` `GroupPositionX` float default NULL; | ||
7 | alter table prims change column `GroupPositionY` `GroupPositionY` float default NULL; | ||
8 | alter table prims change column `GroupPositionZ` `GroupPositionZ` float default NULL; | ||
9 | alter table prims change column `VelocityX` `VelocityX` float default NULL; | ||
10 | alter table prims change column `VelocityY` `VelocityY` float default NULL; | ||
11 | alter table prims change column `VelocityZ` `VelocityZ` float default NULL; | ||
12 | alter table prims change column `AngularVelocityX` `AngularVelocityX` float default NULL; | ||
13 | alter table prims change column `AngularVelocityY` `AngularVelocityY` float default NULL; | ||
14 | alter table prims change column `AngularVelocityZ` `AngularVelocityZ` float default NULL; | ||
15 | alter table prims change column `AccelerationX` `AccelerationX` float default NULL; | ||
16 | alter table prims change column `AccelerationY` `AccelerationY` float default NULL; | ||
17 | alter table prims change column `AccelerationZ` `AccelerationZ` float default NULL; | ||
18 | alter table prims change column `RotationX` `RotationX` float default NULL; | ||
19 | alter table prims change column `RotationY` `RotationY` float default NULL; | ||
20 | alter table prims change column `RotationZ` `RotationZ` float default NULL; | ||
21 | alter table prims change column `RotationW` `RotationW` float default NULL; | ||
22 | alter table prims change column `SitTargetOffsetX` `SitTargetOffsetX` float default NULL; | ||
23 | alter table prims change column `SitTargetOffsetY` `SitTargetOffsetY` float default NULL; | ||
24 | alter table prims change column `SitTargetOffsetZ` `SitTargetOffsetZ` float default NULL; | ||
25 | alter table prims change column `SitTargetOrientW` `SitTargetOrientW` float default NULL; | ||
26 | alter table prims change column `SitTargetOrientX` `SitTargetOrientX` float default NULL; | ||
27 | alter table prims change column `SitTargetOrientY` `SitTargetOrientY` float default NULL; | ||
28 | alter table prims change column `SitTargetOrientZ` `SitTargetOrientZ` float default NULL; | ||
29 | alter table prims change column `LoopedSoundGain` `LoopedSoundGain` float NOT NULL default '0'; | ||
30 | alter table prims change column `OmegaX` `OmegaX` float NOT NULL default '0'; | ||
31 | alter table prims change column `OmegaY` `OmegaY` float NOT NULL default '0'; | ||
32 | alter table prims change column `OmegaZ` `OmegaZ` float NOT NULL default '0'; | ||
33 | alter table prims change column `CameraEyeOffsetX` `CameraEyeOffsetX` float NOT NULL default '0'; | ||
34 | alter table prims change column `CameraEyeOffsetY` `CameraEyeOffsetY` float NOT NULL default '0'; | ||
35 | alter table prims change column `CameraEyeOffsetZ` `CameraEyeOffsetZ` float NOT NULL default '0'; | ||
36 | alter table prims change column `CameraAtOffsetX` `CameraAtOffsetX` float NOT NULL default '0'; | ||
37 | alter table prims change column `CameraAtOffsetY` `CameraAtOffsetY` float NOT NULL default '0'; | ||
38 | alter table prims change column `CameraAtOffsetZ` `CameraAtOffsetZ` float NOT NULL default '0'; | ||
39 | alter table prims change column `CollisionSoundVolume` `CollisionSoundVolume` float NOT NULL default '0'; | ||
40 | |||
41 | COMMIT; | ||
42 | |||