1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 17:54:53 +09:00

DB: RemoteCollection was referring to itself accidentally, add migration to fix

This commit is contained in:
fr33domlover 2020-07-23 13:33:54 +00:00
parent b050c9225d
commit ac9c79c761
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,4 @@
RemoteCollection
ident RemoteObjectId
UniqueRemoteCollection ident

View file

@ -1712,6 +1712,16 @@ changes hLocal ctx =
-- 269 -- 269
, addUnique "RemoteTicketDependency" $ , addUnique "RemoteTicketDependency" $
Unique "UniqueRemoteTicketDependencyAccept" ["accept"] Unique "UniqueRemoteTicketDependencyAccept" ["accept"]
-- 270
, unchecked $ lift $ deleteWhere ([] :: [Filter RemoteCollection159])
-- 271
, removeUnique "RemoteCollection" "UniqueRemoteCollection"
-- 272
, removeField "RemoteCollection" "ident"
-- 273
, removeEntity "RemoteCollection"
-- 274
, addEntities model_2020_07_23
] ]
migrateDB migrateDB

View file

@ -227,6 +227,7 @@ module Vervis.Migration.Model
, TicketProjectLocal266Generic (..) , TicketProjectLocal266Generic (..)
, Project266Generic (..) , Project266Generic (..)
, model_2020_06_18 , model_2020_06_18
, model_2020_07_23
) )
where where
@ -445,3 +446,6 @@ makeEntitiesMigration "266"
model_2020_06_18 :: [Entity SqlBackend] model_2020_06_18 :: [Entity SqlBackend]
model_2020_06_18 = $(schema "2020_06_18_tdo") model_2020_06_18 = $(schema "2020_06_18_tdo")
model_2020_07_23 :: [Entity SqlBackend]
model_2020_07_23 = $(schema "2020_07_23_remote_collection_reboot")