chore(db): refactor

This commit is contained in:
dancingCycle 2023-08-28 20:13:39 +02:00
parent ac1b63fcde
commit 72b9beb170
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
CREATE SCHEMA IF NOT EXISTS :schema;
CREATE SCHEMA IF NOT EXISTS :schema_gtfs;
SET search_path to :schema, :schema_gtfs, public;
DROP TABLE IF EXISTS :schema.tbl_gtfs_stops_de_not_dhid_refine;
CREATE TABLE IF NOT EXISTS :schema.tbl_gtfs_stops_de_not_dhid_refine AS SELECT * FROM :schema.tbl_gtfs_stops_de_not_dhid;

View File

@ -2,6 +2,7 @@
DROP SCHEMA IF EXISTS :schema CASCADE;
CREATE SCHEMA IF NOT EXISTS :schema;
CREATE SCHEMA IF NOT EXISTS :schema_gtfs;
SET search_path to :schema, :schema_gtfs, public;
---get subset of stops in Germany and its states