migration fix
This commit is contained in:
parent
0c29b5cb3d
commit
fef50a304f
1 changed files with 3 additions and 3 deletions
|
|
@ -68,13 +68,13 @@ async def m003_default_config(db):
|
||||||
"""
|
"""
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
"""
|
||||||
INSERT INTO nwcprovider.config (key, value) VALUES ('relay', 'nostrclient');
|
INSERT OR IGNORE INTO nwcprovider.config (key, value) VALUES ('relay', 'nostrclient');
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
new_private_key = bytes.hex(secp256k1._gen_private_key())
|
new_private_key = bytes.hex(secp256k1._gen_private_key())
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
"""
|
||||||
INSERT INTO nwcprovider.config (key, value) VALUES ('provider_key', :provider_key);
|
INSERT OR IGNORE INTO nwcprovider.config (key, value) VALUES ('provider_key', :provider_key);
|
||||||
""",
|
""",
|
||||||
{"provider_key": new_private_key},
|
{"provider_key": new_private_key},
|
||||||
)
|
)
|
||||||
|
|
@ -87,7 +87,7 @@ async def m004_default_config2(db):
|
||||||
|
|
||||||
await db.execute(
|
await db.execute(
|
||||||
"""
|
"""
|
||||||
INSERT INTO nwcprovider.config (key, value) VALUES ('relay_alias', ?);
|
INSERT OR IGNORE INTO nwcprovider.config (key, value) VALUES ('relay_alias', ?);
|
||||||
""",
|
""",
|
||||||
("",),
|
("",),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue