💾 Archived View for iich.space › src › db › migrations › 1631773492.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(`
DROP INDEX post_deleted;
DROP INDEX board_deleted;
`);
  },
  up: (db) => {
    db.exec(`
CREATE INDEX post_deleted ON posts(deleted);
CREATE INDEX board_deleted ON boards(deleted);
`);
  },
  version: 1631773492,
};