Adapt to changes in persistent-migration
This commit is contained in:
parent
829fd72fef
commit
fb47407f2b
1 changed files with 7 additions and 1 deletions
|
@ -23,6 +23,8 @@ import Prelude
|
||||||
import Control.Monad.IO.Class (MonadIO)
|
import Control.Monad.IO.Class (MonadIO)
|
||||||
import Control.Monad.Trans.Reader (ReaderT, runReaderT)
|
import Control.Monad.Trans.Reader (ReaderT, runReaderT)
|
||||||
import Data.Maybe (fromMaybe)
|
import Data.Maybe (fromMaybe)
|
||||||
|
import Data.Proxy
|
||||||
|
import Data.Text (Text)
|
||||||
import Database.Persist
|
import Database.Persist
|
||||||
import Database.Persist.Sql (SqlBackend, toSqlKey)
|
import Database.Persist.Sql (SqlBackend, toSqlKey)
|
||||||
|
|
||||||
|
@ -36,7 +38,11 @@ changes :: MonadIO m => [SchemaT SqlBackend m ()]
|
||||||
changes =
|
changes =
|
||||||
[ addField "Workflow"
|
[ addField "Workflow"
|
||||||
(Just "'WSSharer'")
|
(Just "'WSSharer'")
|
||||||
(Field "scope" (FTPrim SqlString) NotNull)
|
(Field
|
||||||
|
"scope"
|
||||||
|
(FTPrim $ backendDataType (Proxy :: Proxy Text))
|
||||||
|
FieldRequired
|
||||||
|
)
|
||||||
--, lift $ do
|
--, lift $ do
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue