blob: 4e83be0ec40d01aade4b0593b638c808260b72e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
.Dd February 12, 2026
.Dt BOLT-NEW 1
.Os
.Sh NAME
.Nm bolt-new
.Nd create a new database migration
.Sh SYNOPSIS
.Nm bolt new
.Op Fl m Ar message
.Op Fl -message Ar message
.Sh DESCRIPTION
.Nm
creates a new database migration file in the migrations directory.
.Pp
The migration file is named using the configured version style (timestamp
or sequential) followed by the message. For example:
.Pa 20240316145038_create_users_table.sql .
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl m Ar message , Fl -message Ar message
Message to use for the migration. Default:
.Qq autogenerated .
.El
.Sh EXIT STATUS
.Nm
exits 0 on success, and >0 if an error occurs.
.Sh EXAMPLES
Create a migration with a message:
.Dl $ bolt new -m \(dqcreate users table\(dq
.Pp
Create a migration with the default message:
.Dl $ bolt new
.Sh SEE ALSO
.Xr bolt 1 ,
.Xr bolt-migration 5
|