fix favicon migration
authorxangelo <me@xangelo.ca>
Fri, 26 Jan 2024 16:51:32 +0000 (11:51 -0500)
committerxangelo <me@xangelo.ca>
Fri, 26 Jan 2024 16:51:32 +0000 (11:51 -0500)
migrations/20240125151642_init.ts
migrations/20240126041850_favicons.ts [deleted file]

index 89b1eb44af23c4e17075d90ba2ec38e78ae6cd04..53b6c47d7ada0e18f603a0852f5d69dce78ee2e4 100644 (file)
@@ -6,6 +6,7 @@ export async function up(knex: Knex): Promise<void> {
     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 (file)
index e482b10..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-import type { Knex } from "knex";
-
-
-export async function up(knex: Knex): Promise<void> {
-  return knex.schema.alterTable('feeds', t => {
-    t.string('favicon');
-  });
-}
-
-
-export async function down(knex: Knex): Promise<void> {
-  return knex.schema.alterTable('feeds', t => {
-    t.dropColumn('favicon');
-  });
-}
-