From e963e64b3c28ea52628b4d4e159c990dce20c81e Mon Sep 17 00:00:00 2001 From: mostlikelee Date: Tue, 13 Feb 2024 10:19:44 -0700 Subject: [PATCH] re-timestamp migration --- ...ntsTable.go => 20240209135115_AddVulnHostCountsTable.go} | 6 +++--- ...est.go => 20240209135115_AddVulnHostCountsTable_test.go} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename server/datastore/mysql/migrations/tables/{20240208095115_AddVulnHostCountsTable.go => 20240209135115_AddVulnHostCountsTable.go} (80%) rename server/datastore/mysql/migrations/tables/{20240208095115_AddVulnHostCountsTable_test.go => 20240209135115_AddVulnHostCountsTable_test.go} (93%) diff --git a/server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable.go b/server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable.go similarity index 80% rename from server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable.go rename to server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable.go index 0797f9672d..b59f74f3b9 100644 --- a/server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable.go +++ b/server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable.go @@ -5,10 +5,10 @@ import ( ) func init() { - MigrationClient.AddMigration(Up_20240208095115, Down_20240208095115) + MigrationClient.AddMigration(Up_20240209135115, Down_20240209135115) } -func Up_20240208095115(tx *sql.Tx) error { +func Up_20240209135115(tx *sql.Tx) error { createStmt := ` CREATE TABLE IF NOT EXISTS vulnerability_host_counts ( cve VARCHAR(20) NOT NULL, @@ -27,6 +27,6 @@ func Up_20240208095115(tx *sql.Tx) error { return nil } -func Down_20240208095115(tx *sql.Tx) error { +func Down_20240209135115(tx *sql.Tx) error { return nil } diff --git a/server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable_test.go b/server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable_test.go similarity index 93% rename from server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable_test.go rename to server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable_test.go index 5af7a11865..83fc6ebccd 100644 --- a/server/datastore/mysql/migrations/tables/20240208095115_AddVulnHostCountsTable_test.go +++ b/server/datastore/mysql/migrations/tables/20240209135115_AddVulnHostCountsTable_test.go @@ -2,7 +2,7 @@ package tables import "testing" -func TestUp_20240208095115(t *testing.T) { +func TestUp_20240209135115(t *testing.T) { db := applyUpToPrev(t) applyNext(t, db)