needed migration file
This commit is contained in:
parent
4fc947adff
commit
7a18a44948
2 changed files with 14 additions and 0 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
from quart import Blueprint
|
from quart import Blueprint
|
||||||
|
from lnbits.db import Database
|
||||||
|
|
||||||
|
db = Database("ext_example")
|
||||||
|
|
||||||
ngrok_ext: Blueprint = Blueprint("ngrok", __name__, template_folder="templates")
|
ngrok_ext: Blueprint = Blueprint("ngrok", __name__, template_folder="templates")
|
||||||
|
|
||||||
|
|
|
||||||
11
lnbits/extensions/ngrok/migrations.py
Normal file
11
lnbits/extensions/ngrok/migrations.py
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
# async def m001_initial(db):
|
||||||
|
|
||||||
|
# await db.execute(
|
||||||
|
# """
|
||||||
|
# CREATE TABLE example.example (
|
||||||
|
# id TEXT PRIMARY KEY,
|
||||||
|
# wallet TEXT NOT NULL,
|
||||||
|
# time TIMESTAMP NOT NULL DEFAULT """ + db.timestamp_now + """
|
||||||
|
# );
|
||||||
|
# """
|
||||||
|
# )
|
||||||
Loading…
Add table
Add a link
Reference in a new issue