1
0
Fork 0

creating shadow db only if it not exists...

This commit is contained in:
Antonis Lempesis 2020-07-17 12:39:35 +03:00 committed by Spyros Zoupanos
parent e217d496ab
commit 18d9464b52
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ DROP VIEW IF EXISTS ${stats_db_shadow_name}.software_topics;
-- Creating the shadow database, in case it doesn't exist -- Creating the shadow database, in case it doesn't exist
CREATE database ${stats_db_shadow_name}; CREATE database IF NOT EXISTS ${stats_db_shadow_name};
-- Creating new views -- Creating new views
CREATE VIEW IF NOT EXISTS ${stats_db_shadow_name}.country AS SELECT * FROM ${stats_db_name}.country; CREATE VIEW IF NOT EXISTS ${stats_db_shadow_name}.country AS SELECT * FROM ${stats_db_name}.country;