diff --git a/config/models b/config/models index e070482..59255f3 100644 --- a/config/models +++ b/config/models @@ -1,6 +1,6 @@ -- This file is part of Vervis. -- --- Written in 2016, 2018 by fr33domlover . +-- Written in 2016, 2018, 2019 by fr33domlover . -- -- ♡ Copying is an act of love. Please copy, reuse and share. -- @@ -124,16 +124,16 @@ ProjectCollab UniqueProjectCollab project person ProjectCollabAnon - repo ProjectId - role ProjectRoleId + project ProjectId + role ProjectRoleId - UniqueProjectCollabAnon repo + UniqueProjectCollabAnon project ProjectCollabUser - repo ProjectId - role ProjectRoleId + project ProjectId + role ProjectRoleId - UniqueProjectCollabUser repo + UniqueProjectCollabUser project ------------------------------------------------------------------------------- -- Projects diff --git a/src/Vervis/Migration.hs b/src/Vervis/Migration.hs index c8aeee3..0257586 100644 --- a/src/Vervis/Migration.hs +++ b/src/Vervis/Migration.hs @@ -1,6 +1,6 @@ {- This file is part of Vervis. - - - Written in 2016, 2018 by fr33domlover . + - Written in 2016, 2018, 2019 by fr33domlover . - - ♡ Copying is an act of love. Please copy, reuse and share. - @@ -128,6 +128,10 @@ changes = , addFieldPrimRequired "Person" defaultTime "resetPassKeyCreated" -- 22 , addUnique "Person" $ Unique "UniquePersonEmail" ["email"] + -- 23 + , renameField "ProjectCollabAnon" "repo" "project" + -- 24 + , renameField "ProjectCollabUser" "repo" "project" ] migrateDB :: MonadIO m => ReaderT SqlBackend m (Either Text (Int, Int))