From: xangelo Date: Fri, 26 Jan 2024 16:51:32 +0000 (-0500) Subject: fix favicon migration X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=6bae43bc3e5a9bb131ccc805a34ed1a1e512fffb;p=river.git fix favicon migration --- diff --git a/migrations/20240125151642_init.ts b/migrations/20240125151642_init.ts index 89b1eb4..53b6c47 100644 --- a/migrations/20240125151642_init.ts +++ b/migrations/20240125151642_init.ts @@ -6,6 +6,7 @@ export async function up(knex: Knex): Promise { t.increments(); t.string('url').unique(); t.string('title'); + t.string('favicon'); t.timestamps(); }); diff --git a/migrations/20240126041850_favicons.ts b/migrations/20240126041850_favicons.ts deleted file mode 100644 index e482b10..0000000 --- a/migrations/20240126041850_favicons.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Knex } from "knex"; - - -export async function up(knex: Knex): Promise { - return knex.schema.alterTable('feeds', t => { - t.string('favicon'); - }); -} - - -export async function down(knex: Knex): Promise { - return knex.schema.alterTable('feeds', t => { - t.dropColumn('favicon'); - }); -} -