Fix incorrect db info
This commit is contained in:
parent
484c21eed9
commit
77765d8605
|
@ -4,11 +4,11 @@ import os
|
||||||
def init_db():
|
def init_db():
|
||||||
# Database connection parameters
|
# Database connection parameters
|
||||||
conn = psycopg2.connect(
|
conn = psycopg2.connect(
|
||||||
host="192.168.1.119",
|
host="db",
|
||||||
port=5433,
|
port=5432,
|
||||||
dbname="testdb",
|
dbname="ploughshares",
|
||||||
user="testuser",
|
user="ploughshares",
|
||||||
password="testpass"
|
password="ploughshares_password"
|
||||||
)
|
)
|
||||||
conn.autocommit = True
|
conn.autocommit = True
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
-- Drop tables if they exist
|
-- Drop tables if they exist
|
||||||
DROP TABLE IF EXISTS transaction_documents;
|
DROP TABLE IF EXISTS transaction_documents CASCADE;
|
||||||
DROP TABLE IF EXISTS transactions;
|
DROP TABLE IF EXISTS transactions CASCADE;
|
||||||
|
|
||||||
-- Create transactions table
|
-- Create transactions table
|
||||||
CREATE TABLE IF NOT EXISTS transactions (
|
CREATE TABLE IF NOT EXISTS transactions (
|
||||||
|
|
Loading…
Reference in New Issue