Skip to content

Commit ce3cf50

Browse files
magik6kLexLuthr
authored andcommitted
migrate-curio: Fix migrator schema
1 parent a84e4ff commit ce3cf50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/migrate-curio/migrate.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ func migrate(cctx *cli.Context, repoDir string) error {
118118

119119
_, err = mdb.Exec(`CREATE TABLE IF NOT EXISTS Deals (
120120
ID TEXT UNIQUE,
121-
DB BOOL,
122-
LID BOOL,
123-
Pipeline BOOL
121+
DB BOOL NOT NULL DEFAULT FALSE,
122+
LID BOOL NOT NULL DEFAULT FALSE,
123+
Pipeline BOOL NOT NULL DEFAULT FALSE
124124
);`)
125125
if err != nil {
126126
return fmt.Errorf("failed to create migration table: %w", err)

0 commit comments

Comments
 (0)