Skip to content

Commit 702e50a

Browse files
committed
feat: Added DB_NAME as variable
1 parent 1782046 commit 702e50a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/db/scripts/01_create_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\c event_access;
1+
\c :DB_NAME;
22

33
CREATE TABLE users (
44
user_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),

src/db/scripts/02_create_ticket_stored_procedures.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\c event_access;
1+
\c :DB_NAME;
22

33
CREATE OR REPLACE PROCEDURE sp_register_ticket_to_user(
44
p_ticket_id UUID,

src/db/scripts/03_populate_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CREATE EXTENSION IF NOT EXISTS pgcrypto;
22

3-
\c event_access;
3+
\c :DB_NAME;
44

55
INSERT INTO users (username, password_hash)
66
VALUES

0 commit comments

Comments
 (0)