File tree 6 files changed +6
-6
lines changed
6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ db-migration:
45
45
atlas migrate diff $(name ) --env local
46
46
47
47
db-migrate :
48
- goose -dir migrations sqlite3 " $( DB_PATH) " up
48
+ goose -dir migrations/sql sqlite3 " $( DB_PATH) " up
49
49
50
50
# Generation
51
51
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ env "local" {
14
14
15
15
migration {
16
16
// URL where the migration directory resides.
17
- dir = " file://migrations"
17
+ dir = " file://migrations/sql "
18
18
// An optional format of the migration directory:
19
19
// atlas (default) | flyway | liquibase | goose | golang-migrate | dbmate
20
20
format = goose
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"github.com/rs/zerolog/log"
11
11
)
12
12
13
- //go:embed *.sql
13
+ //go:embed sql/ *.sql
14
14
var migrations embed.FS
15
15
16
16
func Migrate (db database.Querier ) error {
@@ -20,7 +20,7 @@ func Migrate(db database.Querier) error {
20
20
return err
21
21
}
22
22
23
- if err := goose .Up (db .Conn (), ". " ); err != nil {
23
+ if err := goose .Up (db .Conn (), "sql " ); err != nil {
24
24
return err
25
25
}
26
26
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ h1:LeQgvlh56kt/FcBSH9aMRKCf3cpFyBNaXyfa0QzZzDs=
2
+ 20230914054000_initial.sql h1:sLErXQyZGtS68lIer4uJhgjYKxSwOG93/KaK9OZ6YaY=
You can’t perform that action at this time.
0 commit comments