From 9656e14fc758053f34f5cb0e906093e2a18f6162 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Fri, 13 Nov 2026 22:13:14 -0800 Subject: Remove timestamp version style in favor of always using sequential --- man/bolt-tutorial.7 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'man/bolt-tutorial.7') diff --git a/man/bolt-tutorial.7 b/man/bolt-tutorial.7 index 0a137a0..ae2446e 100644 --- a/man/bolt-tutorial.7 +++ b/man/bolt-tutorial.7 @@ -16,6 +16,19 @@ Bolt installed .It A database available (PostgreSQL, MySQL, SQL Server, or SQLite) .El +.Sh CONFIGURING BOLT +Create a +.Pa bolt.toml +file: +.Bd -literal -offset indent +[database] +dsn = "bolt.db" +driver = "sqlite3" +.Ed +.Pp +See +.Xr bolt.toml 5 +for all configuration options. .Sh CREATING YOUR FIRST MIGRATION Create a migration with: .Dl $ bolt new -m \(dqcreate users table\(dq @@ -23,7 +36,7 @@ Create a migration with: This creates a .Pa migrations/ directory with a file like: -.Dl 20240316145038_create_users_table.sql +.Dl 001_create_users_table.sql .Sh WRITING MIGRATION SCRIPTS Edit the migration file to add SQL statements: .Bd -literal -offset indent @@ -45,25 +58,12 @@ section runs when applying the migration. The .Cm -- migrate:down section runs when reverting it. -.Sh CONFIGURING BOLT -Create a -.Pa bolt.toml -file: -.Bd -literal -offset indent -[database] -dsn = "postgresql://user:password@localhost:5432/mydb?sslmode=disable" -driver = "postgresql" -.Ed -.Pp -See -.Xr bolt.toml 5 -for all configuration options. .Sh APPLYING MIGRATIONS Apply all pending migrations: .Dl $ bolt up .Pp Apply up to a specific version: -.Dl $ bolt up -v 20240316145038 +.Dl $ bolt up -v 001 .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 20240316145038 +.Dl $ bolt down -v 001 .Sh SEE ALSO .Xr bolt 1 , .Xr bolt.toml 5 , -- cgit v1.2.3