From 0e8047c948271e2dab47b3203a41a96a95176f81 Mon Sep 17 00:00:00 2001 From: Tony Klink Date: Thu, 25 Jan 2024 21:24:48 -0600 Subject: [PATCH] Remove unused table --- .../1697409647688_create_events.sql | 7 ---- src/noose/sqlite.rs | 38 +++++++++---------- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git a/src/noose/migrations/1697409647688_create_events.sql b/src/noose/migrations/1697409647688_create_events.sql index 9c663b0..ea9ca33 100644 --- a/src/noose/migrations/1697409647688_create_events.sql +++ b/src/noose/migrations/1697409647688_create_events.sql @@ -21,10 +21,3 @@ CREATE TABLE tags ( CREATE INDEX idx_tags_tag ON tags (tag); CREATE INDEX idx_tags_value ON tags (value); CREATE INDEX idx_tags_event_id ON tags (event_id); - -CREATE TABLE deleted_coordinates ( - coordinate TEXT NOT NULL, - created_at INTEGER NOT NULL -); - -CREATE INDEX idx_coordinates_coordinate ON coordinates (coordinate); diff --git a/src/noose/sqlite.rs b/src/noose/sqlite.rs index f471873..083dd83 100644 --- a/src/noose/sqlite.rs +++ b/src/noose/sqlite.rs @@ -147,26 +147,26 @@ impl sea_query::Iden for TagsTable { } } -enum DeletedCoordinatesTable { - Table, - Coordinate, - CreatedAt, -} +// enum DeletedCoordinatesTable { +// Table, +// Coordinate, +// CreatedAt, +// } -impl sea_query::Iden for DeletedCoordinatesTable { - fn unquoted(&self, s: &mut dyn std::fmt::Write) { - write!( - s, - "{}", - match self { - Self::Table => "deleted_coordinates", - Self::Coordinate => "coordinate", - Self::CreatedAt => "created_at", - } - ) - .unwrap() - } -} +// impl sea_query::Iden for DeletedCoordinatesTable { +// fn unquoted(&self, s: &mut dyn std::fmt::Write) { +// write!( +// s, +// "{}", +// match self { +// Self::Table => "deleted_coordinates", +// Self::Coordinate => "coordinate", +// Self::CreatedAt => "created_at", +// } +// ) +// .unwrap() +// } +// } enum EventSeenByRelaysTable { Table,