Skip to content

Commit

Permalink
fix: migration number
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Sep 2, 2022
1 parent 9bc95a1 commit 3563232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package _13_update_timestamp_column_type
package _14_update_timestamp_column_type

import (
"context"
Expand All @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
)

func TestMigrate13(t *testing.T) {
func TestMigrate14(t *testing.T) {
driver, closeFunc, err := ledgertesting.StorageDriver()
require.NoError(t, err)
defer closeFunc()
Expand All @@ -26,7 +26,7 @@ func TestMigrate13(t *testing.T) {
migrations, err := sqlstorage.CollectMigrationFiles(sqlstorage.MigrationsFS)
require.NoError(t, err)

modified, err := sqlstorage.Migrate(context.Background(), schema, migrations[0:13]...)
modified, err := sqlstorage.Migrate(context.Background(), schema, migrations[0:14]...)
require.NoError(t, err)
require.True(t, modified)

Expand All @@ -41,7 +41,7 @@ func TestMigrate13(t *testing.T) {
_, err = schema.ExecContext(context.Background(), sqlq, args...)
require.NoError(t, err)

modified, err = sqlstorage.Migrate(context.Background(), schema, migrations[13])
modified, err = sqlstorage.Migrate(context.Background(), schema, migrations[14])
require.NoError(t, err)
require.True(t, modified)

Expand Down

0 comments on commit 3563232

Please sign in to comment.