diff --git a/db/setup-db.sql b/db/setup-db.sql deleted file mode 100644 index 96139fc..0000000 --- a/db/setup-db.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP DATABASE IF EXISTS bubble; -CREATE DATABASE bubble; diff --git a/db/setup-user.sql b/db/setup-user.sql index 01c4649..d54085a 100644 --- a/db/setup-user.sql +++ b/db/setup-user.sql @@ -1,7 +1,7 @@ -- Create the user that we'll use for service data DO $SERVICE_USER_CREATION$ BEGIN - CREATE ROLE bubble_api; + CREATE ROLE bubble_admin WITH PASSWORD $1; EXCEPTION WHEN duplicate_object THEN RAISE NOTICE '%, skipping', SQLERRM USING ERRCODE = SQLSTATE; END $SERVICE_USER_CREATION$; diff --git a/db/setup.sql b/db/setup.sql deleted file mode 100644 index 338c52a..0000000 --- a/db/setup.sql +++ /dev/null @@ -1,12 +0,0 @@ -CREATE TABLE IF NOT EXISTS users ( - id INTEGER, - name VARCHAR(256), - PRIMARY KEY (id) -); - - -CREATE TABLE IF NOT EXISTS invites ( - id BIGINT, - expires INTEGER, - PRIMARY KEY (id) -);