POSTGRES: Update database migrations to be in accordance with MySQL table definitions. Prerequisite for fixing PGSQLSimulationdata
Signed-off-by: Kevin Cozens <kevin@ve3syb.ca> (mantis #7846)LSLKeyTest
parent
b418033915
commit
7aa3d4256e
|
@ -30,3 +30,11 @@ BEGIN TRANSACTION;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 3
|
||||||
|
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
CREATE UNIQUE INDEX auth_pkey ON auth USING btree (uuid);
|
||||||
|
ALTER TABLE tokens ADD CONSTRAINT "uuid_token" UNIQUE ("uuid","token") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -1153,10 +1153,32 @@ ALTER TABLE regionwindlight ALTER COLUMN draw_classic_clouds SET DEFAULT FALSE;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
VERSION 41 #-- Change Landlags to bigint
|
:VERSION 41 #-- Change Landlags to bigint
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
ALTER TABLE land ALTER "LandFlags" TYPE bigint;
|
ALTER TABLE land ALTER "LandFlags" TYPE bigint;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 42 #-- avination fields
|
||||||
|
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
ALTER TABLE prims ADD "PassCollisions" smallint NOT NULL DEFAULT (0);
|
||||||
|
ALTER TABLE prims ADD "Vehicle" text COLLATE "default";
|
||||||
|
ALTER TABLE regionsettings ADD "block_search" smallint NOT NULL DEFAULT (0);
|
||||||
|
ALTER TABLE regionsettings ADD "casino" smallint NOT NULL DEFAULT (0);
|
||||||
|
ALTER TABLE land ADD "SeeAVs" smallint NOT NULL DEFAULT (1);
|
||||||
|
ALTER TABLE land ADD "AnyAVSounds" smallint NOT NULL DEFAULT (1);
|
||||||
|
ALTER TABLE land ADD "GroupAVSounds" smallint NOT NULL DEFAULT (1);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 43 #---- STATUS ROTATION axis locks
|
||||||
|
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
ALTER TABLE prims ADD "RotationAxisLocks" smallint NOT NULL DEFAULT (0);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
|
@ -153,3 +153,11 @@ BEGIN;
|
||||||
ALTER TABLE usersettings ALTER COLUMN imviaemail SET DATA TYPE boolean USING CASE WHEN false THEN false ELSE true END;
|
ALTER TABLE usersettings ALTER COLUMN imviaemail SET DATA TYPE boolean USING CASE WHEN false THEN false ELSE true END;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
:VERSION 6 # -------------------------------
|
||||||
|
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
ALTER TABLE userpicks ADD "gatekeeper" varchar(255) COLLATE "default";
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
Loading…
Reference in New Issue