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
+6
View File
@@ -52,6 +52,12 @@ class Compat:
return ""
return "<nothing>"
@property
def big_int(self) -> str:
if self.type in {POSTGRES}:
return "BIGINT"
return "INT"
class Connection(Compat):
def __init__(self, conn: AsyncConnection, txn, typ, name, schema):