mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-20 14:47:15 +02:00
Rework licensing flows to be more friendly
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
ALTER TABLE settings
|
||||
ADD COLUMN hide_license_badge BOOLEAN DEFAULT FALSE;
|
||||
|
||||
-- 2. Backfill based on old JSON
|
||||
UPDATE settings
|
||||
SET hide_license_badge = 1
|
||||
WHERE EXISTS ( SELECT 1
|
||||
FROM key_values kv
|
||||
WHERE kv.key = 'license_confirmation'
|
||||
AND JSON_EXTRACT(kv.value, '$.confirmedPersonalUse') = TRUE );
|
||||
Reference in New Issue
Block a user