mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 18:04:53 +09:00
DB: RemoteCollection was referring to itself accidentally, add migration to fix
This commit is contained in:
parent
b050c9225d
commit
ac9c79c761
3 changed files with 18 additions and 0 deletions
4
migrations/2020_07_23_remote_collection_reboot.model
Normal file
4
migrations/2020_07_23_remote_collection_reboot.model
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
RemoteCollection
|
||||||
|
ident RemoteObjectId
|
||||||
|
|
||||||
|
UniqueRemoteCollection ident
|
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue