Fix incorrect db info

This commit is contained in:
jChenvan 2025-07-17 20:58:49 -04:00
parent 484c21eed9
commit 77765d8605
2 changed files with 7 additions and 7 deletions

View File

@ -4,11 +4,11 @@ import os
def init_db():
# Database connection parameters
conn = psycopg2.connect(
host="192.168.1.119",
port=5433,
dbname="testdb",
user="testuser",
password="testpass"
host="db",
port=5432,
dbname="ploughshares",
user="ploughshares",
password="ploughshares_password"
)
conn.autocommit = True
cursor = conn.cursor()

View File

@ -1,6 +1,6 @@
-- Drop tables if they exist
DROP TABLE IF EXISTS transaction_documents;
DROP TABLE IF EXISTS transactions;
DROP TABLE IF EXISTS transaction_documents CASCADE;
DROP TABLE IF EXISTS transactions CASCADE;
-- Create transactions table
CREATE TABLE IF NOT EXISTS transactions (