From 7230c2d01573baafbbf462795074d03a170f7a81 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 12 Nov 2024 14:33:23 -0800 Subject: [PATCH] REmoving fluff from db/ --- db/setup-db.sql | 2 -- db/setup-user.sql | 2 +- db/setup.sql | 12 ------------ 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 db/setup-db.sql delete mode 100644 db/setup.sql 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) -);