init
This commit is contained in:
commit
69bf22c9ec
21 changed files with 778 additions and 0 deletions
13
migrations.py
Normal file
13
migrations.py
Normal 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
|
||||
);
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue