Skip to content

Commit

Permalink
fix migration for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jul 25, 2024
1 parent 3511f57 commit e1b31ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ async def m001_initial(db):
)

await db.execute(
"""
f"""
CREATE TABLE nwcprovider.spent (
id INTEGER PRIMARY KEY AUTOINCREMENT,
id {db.serial_primary_key},
pubkey TEXT NOT NULL,
amount_msats INTEGER NOT NULL,
created_at INTEGER NOT NULL,
Expand All @@ -30,9 +30,9 @@ async def m001_initial(db):
)

await db.execute(
"""
f"""
CREATE TABLE nwcprovider.logs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
id {db.serial_primary_key},
pubkey TEXT NOT NULL,
payload TEXT NOT NULL,
created_at INTEGER NOT NULL,
Expand All @@ -42,9 +42,9 @@ async def m001_initial(db):
)

await db.execute(
"""
f"""
CREATE TABLE nwcprovider.budgets (
id INTEGER PRIMARY KEY AUTOINCREMENT,
id {db.serial_primary_key},
pubkey TEXT NOT NULL,
budget_msats INTEGER NOT NULL,
refresh_window INTEGER NOT NULL,
Expand Down

0 comments on commit e1b31ea

Please sign in to comment.