mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
db: postgres cast int to bigint (#231)
* db: postgres cast int to bigint * migrations: use db.big_int
This commit is contained in:
@@ -49,6 +49,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