Skip to content

Commit

Permalink
website: migrate down post (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m authored Apr 1, 2024
1 parent c5646ad commit 464a173
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/md/versioned/down.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ atlas migrate down \
</Tabs>

3\. After downgrading your database to the desired version, you can safely delete the migration file `20240305171146.sql`
from the migration directory and then run `atlas migrate hash` to update the `atlas.sum` file.
from the migration directory by running `atlas migrate rm 20240305171146`.

4\. After the file was deleted and the database downgraded, you can generate a new migration using the `atlas migrate diff`
command with the optional `--edit` flag to open the generated file in your default editor.
Expand Down
Loading

0 comments on commit 464a173

Please sign in to comment.