{"record":{"id":"7b934dce7ddb0710","repo":"flippercloud/flipper","slug":"your-database-needs-to-be-migrated-to-use-the-late-7b934d","errorCode":null,"errorMessage":"Your database needs to be migrated to use the latest Flipper features.\nSee https://github.com/flippercloud/flipper/issues/557","messagePattern":"Your database needs to be migrated to use the latest Flipper features\\.\nSee https://github\\.com/flippercloud/flipper/issues/557","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/flipper/adapters/sequel.rb","lineNumber":182,"sourceCode":"          @gate_class.where(gate_attrs(feature, gate, thing, json: gate.data_type == :json)).delete\n        else\n          unsupported_data_type gate.data_type\n        end\n\n        true\n      end\n\n      private\n\n      def unsupported_data_type(data_type)\n        raise \"#{data_type} is not supported by this adapter\"\n      end\n\n      def set(feature, gate, thing, options = {})\n        clear_feature = options.fetch(:clear, false)\n        json_feature = options.fetch(:json, false)\n\n        raise VALUE_TO_TEXT_WARNING if json_feature && value_not_text?\n\n        @gate_class.db.transaction do\n          clear(feature) if clear_feature\n          delete(feature, gate)\n\n          begin\n            @gate_class.create(gate_attrs(feature, gate, thing, json: json_feature))\n          rescue ::Sequel::UniqueConstraintViolation\n          end\n        end\n      end\n\n      def delete(feature, gate)\n        @gate_class.where(feature_key: feature.key, key: gate.key.to_s).delete\n      end\n\n      def enable_multi(feature, gate, thing)\n        begin","sourceCodeStart":164,"sourceCodeEnd":200,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/adapters/sequel.rb#L164-L200","documentation":"Error \"Your database needs to be migrated to use the latest Flipper features.\nSee https://github.com/flippercloud/flipper/issues/557\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/adapters/sequel.rb:182 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the Sequel migrations shipped with flipper, e.g. Sequel::Migrator.run(DB, 'lib/flipper/adapters/sequel/migrations') or the rake task your app provides","See https://github.com/flippercloud/flipper/issues/557 for the exact migration SQL for your flipper version","After migrating, restart the application so the adapter picks up the new schema"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}