aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-11-13 22:20:16 -0800
committerEugene Triguba <hello@eugenetriguba.com>2026-11-13 22:20:16 -0800
commit7026e3861a5712ced6f2006f282c8386b4db106e (patch)
tree18db906e76c1736a831f345b4832db91964c960a /man
parentRemove timestamp version style in favor of always using sequential (diff)
downloadcli-7026e3861a5712ced6f2006f282c8386b4db106e.zip
Pad new migrations to 4 digits
Diffstat (limited to 'man')
-rw-r--r--man/bolt-down.12
-rw-r--r--man/bolt-migration.52
-rw-r--r--man/bolt-new.12
-rw-r--r--man/bolt-status.14
-rw-r--r--man/bolt-tutorial.76
-rw-r--r--man/bolt-up.12
6 files changed, 9 insertions, 9 deletions
diff --git a/man/bolt-down.1 b/man/bolt-down.1
index e99eeb1..135009b 100644
--- a/man/bolt-down.1
+++ b/man/bolt-down.1
@@ -34,7 +34,7 @@ Revert all applied migrations:
.Dl $ bolt down
.Pp
Revert migrations down to a specific version:
-.Dl $ bolt down -v 002
+.Dl $ bolt down -v 0002
.Sh SEE ALSO
.Xr bolt 1 ,
.Xr bolt-status 1 ,
diff --git a/man/bolt-migration.5 b/man/bolt-migration.5
index 92d1f37..c0b1913 100644
--- a/man/bolt-migration.5
+++ b/man/bolt-migration.5
@@ -16,7 +16,7 @@ Migration files are named using the pattern:
Where
.Ar version
is a sequential number (e.g.,
-.Li 001 ) .
+.Li 0001 ) .
.Xr bolt-new 1
picks the next number automatically.
.Pp
diff --git a/man/bolt-new.1 b/man/bolt-new.1
index d44367a..014a67a 100644
--- a/man/bolt-new.1
+++ b/man/bolt-new.1
@@ -14,7 +14,7 @@ creates a new database migration file in the migrations directory.
.Pp
The migration file is named with the next sequential version followed by
the message. For example:
-.Pa 001_create_users_table.sql .
+.Pa 0001_create_users_table.sql .
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl m Ar message , Fl -message Ar message
diff --git a/man/bolt-status.1 b/man/bolt-status.1
index c1677c2..0cb9d4f 100644
--- a/man/bolt-status.1
+++ b/man/bolt-status.1
@@ -29,8 +29,8 @@ exits 0 on success, and >0 if an error occurs.
.Bd -literal -offset indent
$ bolt status
Version Message Applied
-001 create_users_table X
-002 add_email_index
+0001 create_users_table X
+0002 add_email_index
.Ed
.Sh SEE ALSO
.Xr bolt 1 ,
diff --git a/man/bolt-tutorial.7 b/man/bolt-tutorial.7
index ae2446e..2448594 100644
--- a/man/bolt-tutorial.7
+++ b/man/bolt-tutorial.7
@@ -36,7 +36,7 @@ Create a migration with:
This creates a
.Pa migrations/
directory with a file like:
-.Dl 001_create_users_table.sql
+.Dl 0001_create_users_table.sql
.Sh WRITING MIGRATION SCRIPTS
Edit the migration file to add SQL statements:
.Bd -literal -offset indent
@@ -63,7 +63,7 @@ Apply all pending migrations:
.Dl $ bolt up
.Pp
Apply up to a specific version:
-.Dl $ bolt up -v 001
+.Dl $ bolt up -v 0001
.Sh CHECKING STATUS
View migration status:
.Dl $ bolt status
@@ -74,7 +74,7 @@ Revert the most recent migration:
.Dl $ bolt down
.Pp
Revert to a specific version:
-.Dl $ bolt down -v 001
+.Dl $ bolt down -v 0001
.Sh SEE ALSO
.Xr bolt 1 ,
.Xr bolt.toml 5 ,
diff --git a/man/bolt-up.1 b/man/bolt-up.1
index df149b9..5583aef 100644
--- a/man/bolt-up.1
+++ b/man/bolt-up.1
@@ -35,7 +35,7 @@ Apply all pending migrations:
.Dl $ bolt up
.Pp
Apply migrations up to a specific version:
-.Dl $ bolt up -v 002
+.Dl $ bolt up -v 0002
.Sh SEE ALSO
.Xr bolt 1 ,
.Xr bolt-down 1 ,