Fix incorrect db info
This commit is contained in:
parent
484c21eed9
commit
77765d8605
|
@ -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()
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue