diff --git a/src/db/migrations/20241107131535_embeds_add_settings_column.ts b/src/db/migrations/20241107131535_embeds_add_settings_column.ts new file mode 100644 index 00000000..104166ac --- /dev/null +++ b/src/db/migrations/20241107131535_embeds_add_settings_column.ts @@ -0,0 +1,13 @@ +import {Knex} from 'knex'; + +export async function up(knex: Knex): Promise { + return knex.raw(` + ALTER TABLE embeds ADD COLUMN settings jsonb DEFAULT '{}'::jsonb; + `); +} + +export async function down(knex: Knex): Promise { + return knex.raw(` + ALTER TABLE embeds DROP COLUMN settings; + `); +}