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
, addUnique "RemoteTicketDependency" $
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

View file

@ -227,6 +227,7 @@ module Vervis.Migration.Model
, TicketProjectLocal266Generic (..)
, Project266Generic (..)
, model_2020_06_18
, model_2020_07_23
)
where
@ -445,3 +446,6 @@ makeEntitiesMigration "266"
model_2020_06_18 :: [Entity SqlBackend]
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")