Skip to content

Commit

Permalink
fix: use unique test table names in test migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
dossy committed Nov 16, 2023
1 parent f3e1d00 commit c9600c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dbmate/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@ func TestMigrationContents(t *testing.T) {
Data: []byte("-- migrate:up\r\n-- migrate:down\r\n"),
},
"db/migrations/002_win_crlf_migration_basic.sql": {
Data: []byte("-- migrate:up\r\ncreate table users (\r\n id integer,\r\n name varchar(255)\r\n);\r\n-- migrate:down\r\ndrop table users;\r\n"),
Data: []byte("-- migrate:up\r\ncreate table test_win_crlf_basic (\r\n id integer,\r\n name varchar(255)\r\n);\r\n-- migrate:down\r\ndrop table test_win_crlf_basic;\r\n"),
},
"db/migrations/003_win_crlf_migration_options.sql": {
Data: []byte("-- migrate:up transaction:true\r\ncreate table users (\r\n id integer,\r\n name varchar(255)\r\n);\r\n-- migrate:down transaction:true\r\ndrop table users;\r\n"),
Data: []byte("-- migrate:up transaction:true\r\ncreate table test_win_crlf_options (\r\n id integer,\r\n name varchar(255)\r\n);\r\n-- migrate:down transaction:true\r\ndrop table test_win_crlf_options;\r\n"),
},
}

Expand Down

0 comments on commit c9600c8

Please sign in to comment.