fix compatibility on REFERENCES statement on streamalerts table creation.
This commit is contained in:
parent
18761ea1da
commit
6312b5b564
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
);
|
);
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue