💾 Archived View for iich.space › src › db › migrations › 1633917650.ts captured on 2021-12-03 at 14:04:38.

View Raw

More Information

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

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

export const migration: Migration = {
  down: (db) => {
    db.exec(`
ALTER TABLE posts DROP COLUMN muted;
`);
  },
  up: (db) => {
    db.exec(`
ALTER TABLE posts ADD COLUMN muted INTEGER;
UPDATE posts SET muted = 0;
`);
  },
  version: 1633917650,
};