updated configuration
This commit is contained in:
@@ -166,7 +166,7 @@ class Repository:
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT COUNT(*)
|
||||
FROM neft_processed_files
|
||||
FROM rtgs_processed_files
|
||||
WHERE filename = :filename
|
||||
AND bankcode = :bankcode
|
||||
""",
|
||||
@@ -190,7 +190,7 @@ class Repository:
|
||||
|
||||
file_data = processed_file.to_dict()
|
||||
insert_sql = """
|
||||
INSERT INTO neft_processed_files (
|
||||
INSERT INTO rtgs_processed_files (
|
||||
filename, bankcode, file_path, transaction_count,
|
||||
status, error_message, processed_at
|
||||
) VALUES (
|
||||
@@ -225,7 +225,7 @@ class Repository:
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT filename
|
||||
FROM neft_processed_files
|
||||
FROM rtgs_processed_files
|
||||
WHERE bankcode = :bankcode
|
||||
ORDER BY processed_at DESC
|
||||
""",
|
||||
@@ -235,7 +235,7 @@ class Repository:
|
||||
cursor.execute(
|
||||
"""
|
||||
SELECT filename
|
||||
FROM neft_processed_files
|
||||
FROM rtgs_processed_files
|
||||
ORDER BY processed_at DESC
|
||||
"""
|
||||
)
|
||||
@@ -290,12 +290,12 @@ class Repository:
|
||||
)
|
||||
|
||||
try:
|
||||
cursor.execute("SELECT COUNT(*) FROM neft_processed_files WHERE ROWNUM = 1")
|
||||
logger.info("✓ neft_processed_files table exists")
|
||||
cursor.execute("SELECT COUNT(*) FROM rtgs_processed_files WHERE ROWNUM = 1")
|
||||
logger.info("✓ rtgs_processed_files table exists")
|
||||
except Exception as e:
|
||||
logger.error(f"✗ neft_processed_files table not found: {e}")
|
||||
logger.error(f"✗ rtgs_processed_files table not found: {e}")
|
||||
raise SystemExit(
|
||||
"FATAL: neft_processed_files table must be created manually before running this application"
|
||||
"FATAL: rtgs_processed_files table must be created manually before running this application"
|
||||
)
|
||||
|
||||
logger.info("Database tables verified successfully")
|
||||
|
||||
Reference in New Issue
Block a user