Skip to content

Commit 6bfda7b

Browse files
committed
fix: correct migration 0019 test to expect DATETIME not TEXT for CURRENT_TIMESTAMP
The host_bypass_* tables use DATETIME type for created_at/updated_at columns, not TEXT. The test's mustContain list had the wrong type string.
1 parent 904bd03 commit 6bfda7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/store/repository/migration_0019_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestMigration0019_FileContent(t *testing.T) {
2525
"rules",
2626
"TEXT NOT NULL DEFAULT '[]'",
2727
"hex(randomblob(16))",
28-
"TEXT NOT NULL DEFAULT (CURRENT_TIMESTAMP)",
28+
"DATETIME NOT NULL DEFAULT (CURRENT_TIMESTAMP)",
2929
"CHECK (scope IN ('global', 'host'))",
3030
"CHECK (rule_type IN ('ip','cidr','domain','domain_suffix','domain_keyword','port'))",
3131
"CHECK (source IN ('admin','system'))",

0 commit comments

Comments
 (0)