hasura migrate create [migration name]
Create files required for a migration
Arguments
Name | Description |
---|
migration name | |
Options
Name | Description |
---|
--down-sql <string> | Sql string/query that is to be used to create a down migration |
--from-server | Take 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-server | Take 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-server | Take 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-verify | Skip TLS verification and disable cert checking |
--envfile <string> | .env filename to load ENV vars from |
-h, --help | Help for hasura |
--log-level <string> | Log level |
--no-color | Do not colorize output |
--project <string> | Directory where commands are executed |
--skip-update-check | Skip automatic update check on command execution |