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)
This commit is contained in:
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;