13 lines
535 B
JavaScript
13 lines
535 B
JavaScript
// Phase 0 placeholder migration — proves the node-pg-migrate pipeline runs
|
|
// end-to-end against Postgres. The real schema (users, refresh_tokens, rooms,
|
|
// room_members, conversations, messages, reactions, read_state) lands in Phase 1.
|
|
|
|
/** @param {import('node-pg-migrate').MigrationBuilder} pgm */
|
|
exports.up = (pgm) => {
|
|
pgm.createExtension('pgcrypto', { ifNotExists: true });
|
|
};
|
|
|
|
/** @param {import('node-pg-migrate').MigrationBuilder} pgm */
|
|
exports.down = (pgm) => {
|
|
pgm.dropExtension('pgcrypto', { ifExists: true });
|
|
};
|