v1 in the middle (#32)

This commit is contained in:
dni ⚡ 2024-10-31 12:15:31 +01:00 committed by GitHub
parent a8eb139360
commit db20915756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1259 additions and 1127 deletions

View file

@ -23,3 +23,10 @@ async def m002_create_config_table(db):
json_data TEXT NOT NULL
);"""
)
async def m003_update_config_table(db):
await db.execute("ALTER TABLE nostrclient.config RENAME COLUMN json_data TO extra")
await db.execute(
"ALTER TABLE nostrclient.config ADD COLUMN owner_id TEXT DEFAULT 'admin'"
)