mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
6d92e4f9db
* save permissions, relationships and collections in catalog with 'is_system_defined' * Use common stanzas in the .cabal file * Refactor migration code into lib instead of exe * Add new server test suite that exercises migrations * Make graphql-engine clean succeed even if the schema does not exist
19 lines
659 B
Haskell
19 lines
659 B
Haskell
-- | A module that defines the current catalog version and nothing else. This is necessary to
|
|
-- circumvent the unfortunate “GHC stage restriction,” which prevents us from using a binding in a
|
|
-- compile-time splice unless it is defined in a different module. The actual migration code is in
|
|
-- "Hasura.Server.Migrate".
|
|
module Hasura.Server.Migrate.Version
|
|
( latestCatalogVersion
|
|
, latestCatalogVersionString
|
|
) where
|
|
|
|
import Hasura.Prelude
|
|
|
|
import qualified Data.Text as T
|
|
|
|
latestCatalogVersion :: Integer
|
|
latestCatalogVersion = 26
|
|
|
|
latestCatalogVersionString :: T.Text
|
|
latestCatalogVersionString = T.pack $ show latestCatalogVersion
|