'use strict'; module.exports = { async up(queryInterface) { await queryInterface.sequelize.query(` ALTER TABLE community.vocab_course_progress ADD COLUMN IF NOT EXISTS lesson_state JSONB NOT NULL DEFAULT '{}'::jsonb; COMMENT ON COLUMN community.vocab_course_progress.lesson_state IS 'Persistierter UI- und Lernzustand pro Nutzer und Lektion fuer Resume im Sprachkurs.'; `); }, async down(queryInterface) { await queryInterface.sequelize.query(` ALTER TABLE community.vocab_course_progress DROP COLUMN IF EXISTS lesson_state; `); } };