aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-13 20:56:56 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-13 20:56:56 -0500
commitc4cc38997dac757ba08d55b5082208f8633cedcf (patch)
treeef6f52a292c37986850671c1c9497712f7c6996b /README.md
parentAdd command reference (diff)
downloadcli-c4cc38997dac757ba08d55b5082208f8633cedcf.zip
Tweak readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index fff1d31..b83d3b9 100644
--- a/README.md
+++ b/README.md
@@ -326,8 +326,8 @@ Bolt keeps track of which migrations have been applied to your database by creat
### How Are Migrations Applied?
-When you run `bolt up`, Bolt will look at your local migration scripts and compares the version part of the migration directory names to the versions that have been inserted into the `bolt_migrations` table. Any versions that aren't in the table will be applied in order, starting with the oldest migration.
+When you run `bolt up`, Bolt will look at your local migration scripts and compares the version part of the migration directory names to the versions that have been inserted into the `bolt_migrations` table. Any versions that aren't in the table will be applied in order, starting with the oldest migration. Applying a migration entails executing the `upgrade.sql` script in a transaction and inserting in the migration's version into the `bolt_migrations` table.
### How Are Migrations Reverted?
-When you run `bolt down`, Bolt will look at the `bolt_migrations` table and compare the versions to the versions of your local migration scripts. Any versions that are in the table but not in your local migration scripts will be reverted in order, starting with the newest migration.
+When you run `bolt down`, Bolt will look at the `bolt_migrations` table and compare the versions to the versions of your local migration scripts. Any versions that are in the table but not in your local migration scripts will be reverted in order, starting with the newest migration. Reverting a migration entails executing the `downgrade.sql` script in a transaction and removing the migration's version from the `bolt_migrations` table.