From 6bae43bc3e5a9bb131ccc805a34ed1a1e512fffb Mon Sep 17 00:00:00 2001 From: xangelo Date: Fri, 26 Jan 2024 11:51:32 -0500 Subject: [PATCH] fix favicon migration --- migrations/20240125151642_init.ts | 1 + migrations/20240126041850_favicons.ts | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 migrations/20240126041850_favicons.ts 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'); - }); -} - -- 2.25.1