fix: use bigint for amounts in postgres (#1030)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user