(t *testing.T, pg bool)
| 16 | const gatePGMigration = "136_schedule_gates_item.sql" |
| 17 | |
| 18 | func gateMigrationSQL(t *testing.T, pg bool) string { |
| 19 | t.Helper() |
| 20 | fs, path := migrationsFS, "migrations/"+gateMigration |
| 21 | if pg { |
| 22 | fs, path = pgMigrationsFS, "pgmigrations/"+gatePGMigration |
| 23 | } |
| 24 | b, err := fs.ReadFile(path) |
| 25 | if err != nil { |
| 26 | t.Fatal(err) |
| 27 | } |
| 28 | return string(b) |
| 29 | } |
| 30 | |
| 31 | // oldGateTable is the table as migration 172 and Postgres 134 made it. |
| 32 | const oldGateTable = `CREATE TABLE schedule_gates ( |
no test coverage detected