fix: use bigint for amounts in postgres (#1030)

This commit is contained in:
Vlad Stan
2022-10-07 14:23:57 +02:00
committed by GitHub
parent 8d6c0a4843
commit 7711387d64
8 changed files with 23 additions and 17 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ async def m001_initial(db):
wallet TEXT NOT NULL,
name TEXT NOT NULL,
message TEXT NOT NULL,
sats INT NOT NULL,
tipjar INT NOT NULL,
sats {db.big_int} NOT NULL,
tipjar {db.big_int} NOT NULL,
FOREIGN KEY(tipjar) REFERENCES {db.references_schema}TipJars(id)
);
"""