Update migrations.py
f string
This commit is contained in:
parent
b23b3634f6
commit
f1418da52f
|
@ -3,7 +3,7 @@ async def m001_initial(db):
|
||||||
Initial paywalls table.
|
Initial paywalls table.
|
||||||
"""
|
"""
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
f"""
|
||||||
CREATE TABLE paywall.paywalls (
|
CREATE TABLE paywall.paywalls (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
wallet TEXT NOT NULL,
|
wallet TEXT NOT NULL,
|
||||||
|
@ -25,7 +25,7 @@ async def m002_redux(db):
|
||||||
"""
|
"""
|
||||||
await db.execute("ALTER TABLE paywall.paywalls RENAME TO paywalls_old")
|
await db.execute("ALTER TABLE paywall.paywalls RENAME TO paywalls_old")
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
f"""
|
||||||
CREATE TABLE paywall.paywalls (
|
CREATE TABLE paywall.paywalls (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
wallet TEXT NOT NULL,
|
wallet TEXT NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user