Open warmdev opened 7 years ago
CREATE DATABASE $db_name IF NOT EXISTS; does not work in PostgreSQL (the IF NOT EXISTS part). See http://stackoverflow.com/questions/18389124/simulate-create-database-if-not-exists-for-postgresql for workaround.
CREATE DATABASE $db_name IF NOT EXISTS;
IF NOT EXISTS
CREATE DATABASE $db_name IF NOT EXISTS;
does not work in PostgreSQL (theIF NOT EXISTS
part). See http://stackoverflow.com/questions/18389124/simulate-create-database-if-not-exists-for-postgresql for workaround.