This commit is contained in:
callebtc 2023-02-10 14:55:30 +01:00
commit 69bf22c9ec
21 changed files with 778 additions and 0 deletions

13
migrations.py Normal file
View file

@ -0,0 +1,13 @@
async def m001_initial(db):
"""
Initial nostrclient table.
"""
await db.execute(
f"""
CREATE TABLE nostrclient.relays (
id TEXT NOT NULL PRIMARY KEY,
url TEXT NOT NULL,
active BOOLEAN DEFAULT true
);
"""
)