mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 15:54:51 +09:00
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.Trans.Reader (ReaderT, runReaderT)
|
||||
import Data.Maybe (fromMaybe)
|
||||
import Data.Proxy
|
||||
import Data.Text (Text)
|
||||
import Database.Persist
|
||||
import Database.Persist.Sql (SqlBackend, toSqlKey)
|
||||
|
||||
|
@ -36,7 +38,11 @@ changes :: MonadIO m => [SchemaT SqlBackend m ()]
|
|||
changes =
|
||||
[ addField "Workflow"
|
||||
(Just "'WSSharer'")
|
||||
(Field "scope" (FTPrim SqlString) NotNull)
|
||||
(Field
|
||||
"scope"
|
||||
(FTPrim $ backendDataType (Proxy :: Proxy Text))
|
||||
FieldRequired
|
||||
)
|
||||
--, lift $ do
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue