💾 Archived View for iich.space › src › db › migrations › 1631822323.ts captured on 2022-01-08 at 14:18:13.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

import { Migration } from '../migrate';

export const migration: Migration = {
  down: (db) => {
    db.exec(`
ALTER TABLE posts DROP COLUMN fingerprint;
`);
  },
  up: (db) => {
    db.exec(`
ALTER TABLE posts ADD fingerprint VARCHAR(255) DEFAULT NULL;
`);
  },
  version: 1631822323,
};