mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
60 lines
1.7 KiB
ReStructuredText
60 lines
1.7 KiB
ReStructuredText
.. meta::
|
|
:description: Use hasura migrate squash to squash multiple migrations into one migration with the Hasura CLI
|
|
:keywords: hasura, docs, CLI, hasura migrate squash
|
|
|
|
.. _hasura_migrate_squash:
|
|
|
|
Hasura CLI: hasura migrate squash
|
|
---------------------------------
|
|
|
|
(PREVIEW) Squash multiple migrations into a single one.
|
|
|
|
Synopsis
|
|
~~~~~~~~
|
|
|
|
|
|
(PREVIEW) Squash multiple migrations leading up to the latest one into a single migration file.
|
|
|
|
::
|
|
|
|
hasura migrate squash [flags]
|
|
|
|
Examples
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
# NOTE: This command is in PREVIEW. Correctness is not guaranteed and the usage may change.
|
|
|
|
# squash all migrations from version 123 to the latest one:
|
|
hasura migrate squash --from 123
|
|
|
|
Options
|
|
~~~~~~~
|
|
|
|
::
|
|
|
|
--admin-secret string admin secret for Hasura GraphQL engine
|
|
--delete-source delete the source files after squashing without any confirmation
|
|
--endpoint string http(s) endpoint for Hasura GraphQL engine
|
|
--from uint start squashing form this version
|
|
-h, --help help for squash
|
|
--name string name for the new squashed migration (default "squashed")
|
|
|
|
Options inherited from parent commands
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
::
|
|
|
|
--log-level string log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
|
|
--no-color do not colorize output (default: false)
|
|
--project string directory where commands are executed (default: current dir)
|
|
--skip-update-check skip automatic update check on command execution
|
|
|
|
SEE ALSO
|
|
~~~~~~~~
|
|
|
|
* :ref:`hasura migrate <hasura_migrate>` - Manage migrations on the database
|
|
|
|
*Auto generated by spf13/cobra*
|