mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 07:05:24 +00:00
fix(channel-monitor-v2): preserve migration checksums and privacy defaults
This commit is contained in:
1 parent
0d98176c59
commit
9f3ee38d4e
6 files changed
+40
-9
No files matched your search
@@ -0,0 +1,8 @@
|
||||
-- Correct factory defaults introduced by migrations 203 and 204 without
|
||||
-- mutating those already-applied migration files (which are checksum-locked).
|
||||
-- The setting was factory-created as false by migration 204. Existing
|
||||
-- installations need the same privacy-preserving default as new installs.
|
||||
UPDATE settings
|
||||
SET value = 'true', updated_at = NOW()
|
||||
WHERE key = 'channel_monitor_hide_throughput'
|
||||
AND LOWER(TRIM(value)) IN ('false', '0', 'off', 'disabled');
|
||||
Reference in new issue
Block a user