(client)
| 23 | } |
| 24 | |
| 25 | const ensureMigrationLedger = async (client) => { |
| 26 | await client.query(` |
| 27 | CREATE TABLE IF NOT EXISTS ${migrationTable} ( |
| 28 | version INTEGER PRIMARY KEY, |
| 29 | label VARCHAR(255) NOT NULL, |
| 30 | applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP |
| 31 | ) |
| 32 | `); |
| 33 | }; |
| 34 | |
| 35 | const recordSchemaVersion = async (client) => { |
| 36 | await ensureMigrationLedger(client); |
no outgoing calls
no test coverage detected