Remove the FOREIGN KEY constraints which can cause issues in SQLite; clean up the syntax
This commit is contained in:
parent
22ebdc76bb
commit
1196349cbc
1 changed files with 5 additions and 7 deletions
|
|
@ -67,8 +67,7 @@ async def m004_create_dca_deposits(db):
|
|||
status TEXT NOT NULL DEFAULT 'pending',
|
||||
notes TEXT,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT {db.timestamp_now},
|
||||
confirmed_at TIMESTAMP,
|
||||
FOREIGN KEY (client_id) REFERENCES myextension.dca_clients(id)
|
||||
confirmed_at TIMESTAMP
|
||||
);
|
||||
"""
|
||||
)
|
||||
|
|
@ -90,8 +89,7 @@ async def m005_create_dca_payments(db):
|
|||
lamassu_transaction_id TEXT,
|
||||
payment_hash TEXT,
|
||||
status TEXT NOT NULL DEFAULT 'pending',
|
||||
created_at TIMESTAMP NOT NULL DEFAULT {db.timestamp_now},
|
||||
FOREIGN KEY (client_id) REFERENCES myextension.dca_clients(id)
|
||||
created_at TIMESTAMP NOT NULL DEFAULT {db.timestamp_now}
|
||||
);
|
||||
"""
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue