mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
f83a8e591f
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret. Server CLI and console all support the older flag but marks it as deprecated.
45 lines
1.1 KiB
ReStructuredText
45 lines
1.1 KiB
ReStructuredText
.. _hasura_migrate_apply:
|
|
|
|
Hasura CLI: hasura migrate apply
|
|
--------------------------------
|
|
|
|
Apply migrations on the database
|
|
|
|
Synopsis
|
|
~~~~~~~~
|
|
|
|
|
|
Apply migrations on the database
|
|
|
|
::
|
|
|
|
hasura migrate apply [flags]
|
|
|
|
Options
|
|
~~~~~~~
|
|
|
|
::
|
|
|
|
--admin-secret string admin secret key for Hasura GraphQL Engine
|
|
--down string apply all or N down migration steps
|
|
--endpoint string http(s) endpoint for Hasura GraphQL Engine
|
|
-h, --help help for apply
|
|
--type string type of migration (up, down) to be used with version flag (default "up")
|
|
--up string apply all or N up migration steps
|
|
--version string migrate the database to a specific version
|
|
|
|
Options inherited from parent commands
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
::
|
|
|
|
--log-level string log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
|
|
--project string directory where commands are executed. (default: current dir)
|
|
|
|
SEE ALSO
|
|
~~~~~~~~
|
|
|
|
* :ref:`hasura migrate <hasura_migrate>` - Manage migrations on the database
|
|
|
|
*Auto generated by spf13/cobra*
|