hasura migrate create [migration name]

Create files required for a migration

Arguments

NameDescription
migration name

Options

NameDescription
--down-sql <string>Sql string/query that is to be used to create a down migration
--from-serverTake pg_dump of schema and Hasura metadata from the server
--metadata-from-file <string>Path to a hasura metadata file to be used for up actions
--metadata-from-serverTake metadata from the server and write it as an up migration file
--schema <strings...>Name of Postgres schema to export as a migration
--sql-from-file <string>Path to an SQL file which contains the SQL statements
--sql-from-serverTake pg_dump from the server and save it as a migration
--up-sql <string>Sql string/query that is to be used to create an up migration
--admin-secret <string>Admin secret for Hasura GraphQL engine
--certificate-authority <string>Path to a cert file for the certificate authority
--endpoint <string>Http(s) endpoint for Hasura GraphQL engine (env `HASURA_GRAPHQL_ENDPOINT`)
--insecure-skip-tls-verifySkip TLS verification and disable cert checking
--envfile <string>.env filename to load ENV vars from
-h, --helpHelp for hasura
--log-level <string>Log level
--no-colorDo not colorize output
--project <string>Directory where commands are executed
--skip-update-checkSkip automatic update check on command execution