-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document the CLI's
migration extract
command (#7169)
* Add missing `migration extract` command * Replace manual migration file restore process This can now link to the `migration extract` command instead
- Loading branch information
Showing
3 changed files
with
46 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.. _ref_cli_edgedb_migration_extract: | ||
|
||
|
||
======================== | ||
edgedb migration extract | ||
======================== | ||
|
||
Extract migration history from the database and write it to | ||
``/dbschema/migrations``. Useful when a direct DDL command has been used to | ||
change the schema and now ``edgedb migrate`` will not comply because the | ||
database migration history is ahead of the migration history inside | ||
``/dbschema/migrations``. | ||
|
||
This can also be useful if the migrations on the file system have been lost or | ||
deleted. | ||
|
||
Options | ||
======= | ||
|
||
The ``migration extract`` command runs on the database it is connected | ||
to. For specifying the connection target see :ref:`connection options | ||
<ref_cli_edgedb_connopts>`. | ||
|
||
|
||
:cli:synopsis:`--tls-server-name <TLS_SERVER_NAME>` | ||
Override server name used for TLS connections and certificate verification. | ||
|
||
Useful when the server hostname cannot be used as it does not resolve, or | ||
resolves to a wrong IP address, and a different name or IP address is used | ||
in ``--host``. | ||
|
||
:cli:synopsis:`--non-interactive` | ||
Don't ask questions, only add missing files, abort if mismatching | ||
|
||
:cli:synopsis`--force` | ||
Force overwrite existing migration files | ||
|
||
:cli:synopsis:`--schema-dir=<schema-dir>` | ||
Directory where the schema files are located. Defaults to | ||
``./dbschema``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters