-- ═══════════════════════════════════════════════════════════════
-- 029: Seed the gamification feature flag
--
-- Until now there was no row for feature_gamification_enabled in
-- app_settings — meaning /api/features returned `gamification: undefined`
-- and the front-end kill-switch (`body.no-gamification`) never engaged,
-- regardless of admin intent.
--
-- Default = ON. Admins can disable via PATCH /api/admin/features
-- once 'gamification' is added to the allowed list (handled in
-- adminController.js, not this migration).
-- ═══════════════════════════════════════════════════════════════

INSERT OR IGNORE INTO app_settings (key, value)
  VALUES ('feature_gamification_enabled', '1');
