0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/schemas/alterations/1.0.0-1679209413-drop-connector-database-storage.ts
Gao Sun 28e9fa4290
release: core v1.0.0 (#3554)
* chore: move changesets

* release: core v1.0.0

* chore: update workflow
2023-03-20 23:57:04 +08:00

18 lines
418 B
TypeScript

import { sql } from 'slonik';
import type { AlterationScript } from '../lib/types/alteration.js';
const alteration: AlterationScript = {
up: async (pool) => {
await pool.query(sql`
alter table connectors drop storage;
`);
},
down: async (pool) => {
await pool.query(sql`
alter table connectors add storage jsonb not null default '{}'::jsonb;
`);
},
};
export default alteration;