Remove unused table

This commit is contained in:
Tony Klink 2024-01-25 21:24:48 -06:00
parent 9f29f6cd07
commit 0e8047c948
Signed by: klink
GPG key ID: 85175567C4D19231
2 changed files with 19 additions and 26 deletions

View file

@ -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);

View file

@ -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,