Light
Dark
System
v4latest
v4latest
v3
v2
v1

edgedb migration edit

Edit migration file.

edgedb migration edit [options]

Invokes $EDITOR on the last migration file, and then fixes migration id after editor exits. Usually should be used for migrations that haven’t been applied yet.

The migration edit command runs on the database it is connected to. For specifying the connection target see connection options.

--schema-dir=schema-dir

Directory where the schema files are located. Defaults to ./dbschema.

--no-check

Do not check migration within the database connection.

--non-interactive

Fix migration id non-interactively, and don’t run editor.

Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.