db: postgres cast int to bigint (#231)

* db: postgres cast int to bigint

* migrations: use db.big_int
This commit is contained in:
callebtc
2023-05-19 08:59:13 +02:00
committed by GitHub
parent 730772d6a7
commit 151fa1421a
3 changed files with 13 additions and 7 deletions

View File

@@ -14,9 +14,9 @@ async def m000_create_migrations_table(db: Database):
async def m001_initial(db: Database):
await db.execute(
"""
f"""
CREATE TABLE IF NOT EXISTS proofs (
amount INTEGER NOT NULL,
amount {db.big_int} NOT NULL,
C TEXT NOT NULL,
secret TEXT NOT NULL,
@@ -27,9 +27,9 @@ async def m001_initial(db: Database):
)
await db.execute(
"""
f"""
CREATE TABLE IF NOT EXISTS proofs_used (
amount INTEGER NOT NULL,
amount {db.big_int} NOT NULL,
C TEXT NOT NULL,
secret TEXT NOT NULL,