migration tracking.

This commit is contained in:
fiatjaf
2020-09-04 21:33:30 -03:00
committed by fiatjaf
parent f238b3d1ef
commit c965bca41d
17 changed files with 86 additions and 130 deletions
-8
View File
@@ -1,7 +1,5 @@
from sqlite3 import OperationalError
from lnbits.db import open_ext_db
def m001_initial(db):
"""
@@ -65,9 +63,3 @@ def m002_redux(db):
)
db.execute("DROP TABLE paywalls_old")
def migrate():
with open_ext_db("paywall") as db:
m001_initial(db)
m002_redux(db)