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
Geir Nøklebye 2016-03-16 15:17:38 +01:00 committed by Kevin Cozens
parent b418033915
commit 7aa3d4256e
3 changed files with 39 additions and 1 deletions

View File

@ -30,3 +30,11 @@ BEGIN TRANSACTION;
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;

View File

@ -1153,10 +1153,32 @@ ALTER TABLE regionwindlight ALTER COLUMN draw_classic_clouds SET DEFAULT FALSE;
COMMIT;
VERSION 41 #-- Change Landlags to bigint
:VERSION 41 #-- Change Landlags to bigint
BEGIN TRANSACTION;
ALTER TABLE land ALTER "LandFlags" TYPE bigint;
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;

View File

@ -153,3 +153,11 @@ BEGIN;
ALTER TABLE usersettings ALTER COLUMN imviaemail SET DATA TYPE boolean USING CASE WHEN false THEN false ELSE true END;
COMMIT;
:VERSION 6 # -------------------------------
BEGIN TRANSACTION;
ALTER TABLE userpicks ADD "gatekeeper" varchar(255) COLLATE "default";
COMMIT;