Migration fix attempt
This commit is contained in:
parent
a29255f87c
commit
e971432cd7
@ -114,7 +114,7 @@ customMigrations = Map.fromListWith (>>)
|
|||||||
|]
|
|]
|
||||||
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
UPDATE "user_admin" SET "school" = #{ssh} WHERE school = #{tshow idnr};
|
UPDATE "user_admin" SET school = #{ssh} WHERE school = #{tshow idnr};
|
||||||
|]
|
|]
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
ALTER TABLE "user_admin" ADD CONSTRAINT "user_admin_school_fkey"
|
ALTER TABLE "user_admin" ADD CONSTRAINT "user_admin_school_fkey"
|
||||||
@ -127,7 +127,7 @@ customMigrations = Map.fromListWith (>>)
|
|||||||
|]
|
|]
|
||||||
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
UPDATE "user_lecturer" SET "school" = #{ssh} WHERE school = #{tshow idnr};
|
UPDATE "user_lecturer" SET school = #{ssh} WHERE school = #{tshow idnr};
|
||||||
|]
|
|]
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
ALTER TABLE "user_lecturer" ADD CONSTRAINT "user_lecturer_school_fkey"
|
ALTER TABLE "user_lecturer" ADD CONSTRAINT "user_lecturer_school_fkey"
|
||||||
@ -140,7 +140,7 @@ customMigrations = Map.fromListWith (>>)
|
|||||||
|]
|
|]
|
||||||
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
forM_ schoolTable $ \(Single idnr, Single ssh) ->
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
UPDATE "course" SET "school" = #{ssh} WHERE school = #{tshow idnr};
|
UPDATE "course" SET school = #{ssh} WHERE school = #{tshow idnr};
|
||||||
|]
|
|]
|
||||||
[executeQQ|
|
[executeQQ|
|
||||||
ALTER TABLE "course" ADD CONSTRAINT "course_school_fkey"
|
ALTER TABLE "course" ADD CONSTRAINT "course_school_fkey"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user