re-timestamp migration
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
+1
-1
@@ -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)
|
||||
Reference in New Issue
Block a user