Commit a8fd3b4 1 parent 38d6e2b commit a8fd3b4 Copy full SHA for a8fd3b4
File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,18 @@ def main():
89
89
if not os .path .exists (dir_sql_processed ):
90
90
os .makedirs (dir_sql_processed )
91
91
# ---------------------------------------------------------
92
+ # If database does not exist, create database
93
+ # ---------------------------------------------------------
94
+ (ret , exist ) = mapping_util .does_db_exist (db_conf )
95
+ if exist == False :
96
+ ret = mapping_util .create_db (db_conf )
97
+ if ret == True :
98
+ # ---------------------------------------------------------
92
99
# Create the schemas
93
100
# ---------------------------------------------------------
94
- fname = dir_sql + '1__schema_create.sql'
95
- print ('Calling ' + fname + ' ...' )
96
- ret = mapping_util .execute_sql_file_parallel (db_conf , fname , False )
101
+ fname = dir_sql + '1__schema_create.sql'
102
+ print ('Calling ' + fname + ' ...' )
103
+ ret = mapping_util .execute_sql_file_parallel (db_conf , fname , False )
97
104
if ret == True :
98
105
# ---------------------------------------------------------
99
106
# Ask the user for DROP confirmation
You can’t perform that action at this time.
0 commit comments