8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Fix SQL commands for Postgres

This commit is contained in:
Hugo Levy-Falk 2019-09-08 14:37:05 +02:00
parent cc6e1729dc
commit 61ac9c558c
4 changed files with 6 additions and 6 deletions

View file

@ -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;'),
],
)
]

View file

@ -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(

View file

@ -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(

View file

@ -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;'),
]
),
]