mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 14:22:55 +01:00
fix: deactivate on upgrade
This commit is contained in:
parent
b957b506f9
commit
5bcb8cb349
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,7 @@ async def add_installed_extension(
|
||||||
"""
|
"""
|
||||||
INSERT INTO installed_extensions (id, version, name, short_description, icon, icon_url, stars, meta) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
INSERT INTO installed_extensions (id, version, name, short_description, icon, icon_url, stars, meta) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
ON CONFLICT (id) DO
|
ON CONFLICT (id) DO
|
||||||
UPDATE SET (version, name, short_description, icon, icon_url, stars, meta) = (?, ?, ?, ?, ?, ?, ?)
|
UPDATE SET (version, name, active, short_description, icon, icon_url, stars, meta) = (?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
""",
|
""",
|
||||||
(
|
(
|
||||||
ext.id,
|
ext.id,
|
||||||
|
@ -101,6 +101,7 @@ async def add_installed_extension(
|
||||||
json.dumps(meta),
|
json.dumps(meta),
|
||||||
version,
|
version,
|
||||||
ext.name,
|
ext.name,
|
||||||
|
False,
|
||||||
ext.short_description,
|
ext.short_description,
|
||||||
ext.icon,
|
ext.icon,
|
||||||
ext.icon_url,
|
ext.icon_url,
|
||||||
|
|
Loading…
Add table
Reference in a new issue