Update DB config
continuous-integration/drone/push Build is failing Details

main
Félix MIELCAREK 11 months ago
parent a93480e7fc
commit 5ce1e75125

@ -1,6 +1,5 @@
import os import os
import psycopg2 import psycopg2
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
env_user = os.getenv('POSTGRES_USER') env_user = os.getenv('POSTGRES_USER')
env_password = os.getenv('POSTGRES_PASSWORD') env_password = os.getenv('POSTGRES_PASSWORD')
@ -17,10 +16,6 @@ conn.autocommit = True
cur = conn.cursor() cur = conn.cursor()
create_db_query = ''' create_db_query = '''
-- Database: bigbrother
-- DROP DATABASE IF EXISTS bigbrother;
CREATE DATABASE bigbrother CREATE DATABASE bigbrother
WITH WITH
OWNER = postgres OWNER = postgres
@ -31,9 +26,6 @@ CREATE DATABASE bigbrother
TABLESPACE = pg_default TABLESPACE = pg_default
CONNECTION LIMIT = -1 CONNECTION LIMIT = -1
IS_TEMPLATE = False; IS_TEMPLATE = False;
COMMENT ON DATABASE bigbrother
IS 'Database for Big Brother tool for Spotify.';
''' '''
create_schema_query = ''' create_schema_query = '''

Loading…
Cancel
Save