update timestamps 2
This commit is contained in:
+3
-3
@@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
MigrationClient.AddMigration(Up_20230918221115, Down_20230918221115)
|
||||
MigrationClient.AddMigration(Up_20231004144339, Down_20231004144339)
|
||||
}
|
||||
|
||||
func Up_20230918221115(tx *sql.Tx) error {
|
||||
func Up_20231004144339(tx *sql.Tx) error {
|
||||
stmt := `
|
||||
UPDATE teams
|
||||
SET
|
||||
@@ -27,6 +27,6 @@ WHERE
|
||||
return nil
|
||||
}
|
||||
|
||||
func Down_20230918221115(tx *sql.Tx) error {
|
||||
func Down_20231004144339(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUp_20230918221115(t *testing.T) {
|
||||
func TestUp_20231004144339(t *testing.T) {
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
dataStmts := `
|
||||
Reference in New Issue
Block a user