mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-04 10:20:21 +01:00
Merge pull request #61 from ramkrishna757575/database-type-check-fix
Fix : ValueError: Unsupported DATABASE_TYPE: postgres
This commit is contained in:
@@ -377,7 +377,7 @@ def drop_tables():
|
||||
UserInputs,
|
||||
File,
|
||||
]:
|
||||
if DATABASE_TYPE == "postgresql":
|
||||
if DATABASE_TYPE == "postgres":
|
||||
sql = f'DROP TABLE IF EXISTS "{table._meta.table_name}" CASCADE'
|
||||
elif DATABASE_TYPE == "sqlite":
|
||||
sql = f'DROP TABLE IF EXISTS "{table._meta.table_name}"'
|
||||
|
||||
Reference in New Issue
Block a user