From 7a18a44948711a79555fe8e51cc9e36ce8a87198 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Sat, 3 Jul 2021 16:12:07 +0100 Subject: [PATCH] needed migration file --- lnbits/extensions/ngrok/__init__.py | 3 +++ lnbits/extensions/ngrok/migrations.py | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 lnbits/extensions/ngrok/migrations.py diff --git a/lnbits/extensions/ngrok/__init__.py b/lnbits/extensions/ngrok/__init__.py index 26490057f..9dc074887 100644 --- a/lnbits/extensions/ngrok/__init__.py +++ b/lnbits/extensions/ngrok/__init__.py @@ -1,4 +1,7 @@ from quart import Blueprint +from lnbits.db import Database + +db = Database("ext_example") ngrok_ext: Blueprint = Blueprint("ngrok", __name__, template_folder="templates") diff --git a/lnbits/extensions/ngrok/migrations.py b/lnbits/extensions/ngrok/migrations.py new file mode 100644 index 000000000..f9b8b37dc --- /dev/null +++ b/lnbits/extensions/ngrok/migrations.py @@ -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 + """ +# ); +# """ +# )