(line string)
| 42 | } |
| 43 | |
| 44 | func (d *driverWithAlternateLine) GetMigrationFS(line string) fs.FS { |
| 45 | switch line { |
| 46 | case riverdriver.MigrationLineMain: |
| 47 | return d.Driver.GetMigrationFS(line) |
| 48 | case migrationLineAlternate: |
| 49 | return migrationFS |
| 50 | case migrationLineAlternate + "2": |
| 51 | panic(line + " is only meant for testing line suggestions") |
| 52 | case migrationLineCommitRequired: |
| 53 | return migrationFS |
| 54 | } |
| 55 | panic("migration line does not exist: " + line) |
| 56 | } |
| 57 | |
| 58 | func (d *driverWithAlternateLine) GetMigrationLines() []string { |
| 59 | return append(d.Driver.GetMigrationLines(), migrationLineAlternate, migrationLineAlternate+"2", migrationLineCommitRequired) |
nothing calls this directly
no test coverage detected