From 61ac9c558c634209f5355f97d5e946061629a8fb Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Sun, 8 Sep 2019 14:37:05 +0200 Subject: [PATCH] Fix SQL commands for Postgres --- users/migrations/0022_ldapuser_sambasid.py | 2 +- users/migrations/0028_auto_20160726_0227.py | 6 +++--- users/migrations/0034_auto_20161018_0037.py | 2 +- users/migrations/0052_ldapuser_shadowexpire.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/users/migrations/0022_ldapuser_sambasid.py b/users/migrations/0022_ldapuser_sambasid.py index d22a805d..9f9d6521 100644 --- a/users/migrations/0022_ldapuser_sambasid.py +++ b/users/migrations/0022_ldapuser_sambasid.py @@ -44,7 +44,7 @@ class Migration(migrations.Migration): ), ], database_operations=[ - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `sambaSID` integer NULL UNIQUE;'), + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "sambaSID" integer NULL UNIQUE;'), ], ) ] diff --git a/users/migrations/0028_auto_20160726_0227.py b/users/migrations/0028_auto_20160726_0227.py index 91c9ae07..8ff41d49 100644 --- a/users/migrations/0028_auto_20160726_0227.py +++ b/users/migrations/0028_auto_20160726_0227.py @@ -54,9 +54,9 @@ class Migration(migrations.Migration): ), ], database_operations=[ - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `displayName` varchar(200) NULL;'), - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `sambaNTPassword` varchar(200) NULL;'), - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `userPassword` varchar(200) NULL;'), + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "displayName" varchar(200) NULL;'), + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "sambaNTPassword" varchar(200) NULL;'), + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "userPassword" varchar(200) NULL;'), ] ), migrations.AddField( diff --git a/users/migrations/0034_auto_20161018_0037.py b/users/migrations/0034_auto_20161018_0037.py index ee66ec4a..0e3519c1 100644 --- a/users/migrations/0034_auto_20161018_0037.py +++ b/users/migrations/0034_auto_20161018_0037.py @@ -45,7 +45,7 @@ class Migration(migrations.Migration): ), ], database_operations=[ - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `loginShell` varchar(200) NULL;') + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "loginShell" varchar(200) NULL;') ], ), migrations.AddField( diff --git a/users/migrations/0052_ldapuser_shadowexpire.py b/users/migrations/0052_ldapuser_shadowexpire.py index 4d3bc43e..cbc24781 100644 --- a/users/migrations/0052_ldapuser_shadowexpire.py +++ b/users/migrations/0052_ldapuser_shadowexpire.py @@ -22,7 +22,7 @@ class Migration(migrations.Migration): ), ], database_operations=[ - migrations.RunSQL('ALTER TABLE `users_ldapuser` ADD COLUMN `shadowExpire` varchar(200) NULL;'), + migrations.RunSQL('ALTER TABLE "users_ldapuser" ADD COLUMN "shadowExpire" varchar(200) NULL;'), ] ), ]