From 938b5b7000e73884a49d950edbf93a75f779b17e Mon Sep 17 00:00:00 2001 From: saji Date: Tue, 13 Feb 2024 10:04:01 -0600 Subject: [PATCH] add import log table (unused) --- internal/db/migrations/4_add_import_table_down.sql | 1 + internal/db/migrations/4_add_import_table_up.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 internal/db/migrations/4_add_import_table_down.sql create mode 100644 internal/db/migrations/4_add_import_table_up.sql diff --git a/internal/db/migrations/4_add_import_table_down.sql b/internal/db/migrations/4_add_import_table_down.sql new file mode 100644 index 0000000..7b05ad7 --- /dev/null +++ b/internal/db/migrations/4_add_import_table_down.sql @@ -0,0 +1 @@ +DROP TABLE "import_log"; diff --git a/internal/db/migrations/4_add_import_table_up.sql b/internal/db/migrations/4_add_import_table_up.sql new file mode 100644 index 0000000..5d798e0 --- /dev/null +++ b/internal/db/migrations/4_add_import_table_up.sql @@ -0,0 +1,7 @@ +CREATE TABLE "import_log" ( + "filename" TEXT NOT NULL, + "date" INTEGER NOT NULL, + "count" INTEGER NOT NULL, + "start_time" INTEGER NOT NULL, + "end_time" INTEGER NOT NULL +);