mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 22:58:46 +01:00
concatenate first migrations script
fixup
This commit is contained in:
parent
8be9b950fd
commit
f2e494384e
2 changed files with 3 additions and 5 deletions
|
@ -75,5 +75,4 @@ class Settings(BaseSettings):
|
|||
|
||||
|
||||
conf = Settings()
|
||||
print(conf)
|
||||
WALLET = wallet_class()
|
||||
|
|
|
@ -23,6 +23,8 @@ async def get_admin_user():
|
|||
|
||||
|
||||
async def m001_create_admin_table(db):
|
||||
|
||||
|
||||
# users/server
|
||||
user = await get_admin_user()
|
||||
admin_users = ",".join(conf.admin_users)
|
||||
|
@ -78,7 +80,7 @@ async def m001_create_admin_table(db):
|
|||
await db.execute(
|
||||
"""
|
||||
INSERT INTO admin.admin (
|
||||
"user",
|
||||
"user",
|
||||
admin_users,
|
||||
allowed_users,
|
||||
admin_ext,
|
||||
|
@ -126,9 +128,6 @@ async def m001_create_admin_table(db):
|
|||
),
|
||||
)
|
||||
|
||||
|
||||
async def m001_create_funding_table(db):
|
||||
|
||||
funding_wallet = getenv("LNBITS_BACKEND_WALLET_CLASS")
|
||||
|
||||
# Make the funding table, if it does not already exist
|
||||
|
|
Loading…
Add table
Reference in a new issue