2019-10-11 08:13:57 +03:00
|
|
|
-- | 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
|
2019-10-21 19:01:05 +03:00
|
|
|
-- "Hasura.Server.Migrate".
|
|
|
|
module Hasura.Server.Migrate.Version
|
2019-10-11 08:13:57 +03:00
|
|
|
( latestCatalogVersion
|
|
|
|
, latestCatalogVersionString
|
|
|
|
) where
|
|
|
|
|
|
|
|
import Hasura.Prelude
|
|
|
|
|
|
|
|
import qualified Data.Text as T
|
|
|
|
|
|
|
|
latestCatalogVersion :: Integer
|
2019-11-20 09:47:06 +03:00
|
|
|
latestCatalogVersion = 28
|
2019-10-11 08:13:57 +03:00
|
|
|
|
|
|
|
latestCatalogVersionString :: T.Text
|
|
|
|
latestCatalogVersionString = T.pack $ show latestCatalogVersion
|