Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions coderd/database/migrations/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1717,10 +1717,10 @@ func TestMigration000546ChatHistoryAPIKeyConstraints(t *testing.T) {
}
}

func TestMigration000554LegacyNoneLoginToPassword(t *testing.T) {
func TestMigration000555LegacyNoneLoginToPassword(t *testing.T) {
t.Parallel()

const priorMigrationVersion = 553
const priorMigrationVersion = 554

sqlDB := testSQLDB(t)

Expand Down Expand Up @@ -1772,7 +1772,7 @@ func TestMigration000554LegacyNoneLoginToPassword(t *testing.T) {
passwordID, "password-user", "[email protected]", []byte("hashed"), now, now, "active", pq.StringArray{}, "password", false, false)
require.NoError(t, err)

migrationSQL, err := os.ReadFile("000554_legacy_none_login_to_password.up.sql")
migrationSQL, err := os.ReadFile("000555_legacy_none_login_to_password.up.sql")
require.NoError(t, err)
_, err = sqlDB.ExecContext(ctx, string(migrationSQL))
require.NoError(t, err)
Expand Down
Loading