Skip to content

Commit

Permalink
Add settings to embeds (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenkoxx authored Nov 8, 2024
1 parent c8abf69 commit 4d67a31
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/db/migrations/20241107131535_embeds_add_settings_column.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {Knex} from 'knex';

export async function up(knex: Knex): Promise<void> {
return knex.raw(`
ALTER TABLE embeds ADD COLUMN settings jsonb DEFAULT '{}'::jsonb;
`);
}

export async function down(knex: Knex): Promise<void> {
return knex.raw(`
ALTER TABLE embeds DROP COLUMN settings;
`);
}

0 comments on commit 4d67a31

Please sign in to comment.