(b bool)
| 410 | } |
| 411 | |
| 412 | func boolToInt(b bool) int { |
| 413 | if b { |
| 414 | return 1 |
| 415 | } |
| 416 | return 0 |
| 417 | } |
| 418 | |
| 419 | // runMigrations applies idempotent data migrations after the schema exists. |
| 420 | func (s *Store) runMigrations(ctx context.Context, db *sql.DB) error { |
no outgoing calls
no test coverage detected