mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-29 01:14:51 +09:00
In persistent models for migrations, suffix the names of uniques too
This commit is contained in:
parent
5479c99e1c
commit
d77877eba5
1 changed files with 5 additions and 0 deletions
|
@ -109,10 +109,15 @@ append entnames suffix entity =
|
||||||
{ foreignRefTableHaskell = updateEnt $ foreignRefTableHaskell f
|
{ foreignRefTableHaskell = updateEnt $ foreignRefTableHaskell f
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateUnique u = u
|
||||||
|
{ uniqueHaskell = updateName $ uniqueHaskell u
|
||||||
|
}
|
||||||
|
|
||||||
in entity
|
in entity
|
||||||
{ entityHaskell = updateName $ entityHaskell entity
|
{ entityHaskell = updateName $ entityHaskell entity
|
||||||
, entityId = updateField $ entityId entity
|
, entityId = updateField $ entityId entity
|
||||||
, entityFields = map updateField $ entityFields entity
|
, entityFields = map updateField $ entityFields entity
|
||||||
|
, entityUniques = map updateUnique $ entityUniques entity
|
||||||
, entityForeigns = map updateForeign $ entityForeigns entity
|
, entityForeigns = map updateForeign $ entityForeigns entity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue