From 7a98f52542efd1c8ba7afc72bfb1f928b365cbd2 Mon Sep 17 00:00:00 2001 From: saji Date: Wed, 6 Mar 2024 15:16:13 -0600 Subject: [PATCH] hack: remove faulty table from old migration --- migrations/2_addl_tables_down.sql | 1 - migrations/2_addl_tables_up.sql | 9 --------- 2 files changed, 10 deletions(-) diff --git a/migrations/2_addl_tables_down.sql b/migrations/2_addl_tables_down.sql index 37f1d85..9aa64df 100644 --- a/migrations/2_addl_tables_down.sql +++ b/migrations/2_addl_tables_down.sql @@ -1,2 +1 @@ DROP TABLE "drive_records"; -DROP TABLE "position_logs"; \ No newline at end of file diff --git a/migrations/2_addl_tables_up.sql b/migrations/2_addl_tables_up.sql index 0169b71..734beeb 100644 --- a/migrations/2_addl_tables_up.sql +++ b/migrations/2_addl_tables_up.sql @@ -7,12 +7,3 @@ CREATE TABLE "drive_records" ( PRIMARY KEY("id" AUTOINCREMENT), CONSTRAINT "duration_valid" CHECK(end_time is null or start_time < end_time) ); - -CREATE TABLE "position_logs" ( - "ts" INTEGER NOT NULL, - "source" TEXT NOT NULL, - "lat" REAL NOT NULL, - "lon" REAL NOT NULL, - "elevation" REAL, - CONSTRAINT "no_empty_source" CHECK(source is not "") -); \ No newline at end of file