mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-23 17:59:31 +02:00
fix compatibility on REFERENCES statement on streamalerts table creation.
This commit is contained in:
@@ -18,7 +18,7 @@ async def m001_initial(db):
|
|||||||
)
|
)
|
||||||
|
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
f"""
|
||||||
CREATE TABLE IF NOT EXISTS streamalerts.Donations (
|
CREATE TABLE IF NOT EXISTS streamalerts.Donations (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
wallet TEXT NOT NULL,
|
wallet TEXT NOT NULL,
|
||||||
@@ -29,7 +29,7 @@ async def m001_initial(db):
|
|||||||
amount FLOAT NOT NULL,
|
amount FLOAT NOT NULL,
|
||||||
service INTEGER NOT NULL,
|
service INTEGER NOT NULL,
|
||||||
posted BOOLEAN NOT NULL,
|
posted BOOLEAN NOT NULL,
|
||||||
FOREIGN KEY(service) REFERENCES Services(id)
|
FOREIGN KEY(service) REFERENCES {db.references_schema}Services(id)
|
||||||
);
|
);
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user