mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
re-timestamp migration
This commit is contained in:
parent
c387054af1
commit
e963e64b3c
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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)
|
||||
Loading…
Reference in a new issue