-- Admit the 'vk' platform identity (VK Mini App users) into the identities.kind check -- constraint, alongside telegram/email/robot. Expand-contract: widening the allowed set -- is backward-compatible, so a backend image rollback stays DB-safe — the older code -- simply never writes a 'vk' row. The table shape is unchanged (only the CHECK), so the -- generated go-jet model is not regenerated. -- +goose Up ALTER TABLE backend.identities DROP CONSTRAINT identities_kind_chk; ALTER TABLE backend.identities ADD CONSTRAINT identities_kind_chk CHECK ((kind = ANY (ARRAY['telegram'::text, 'vk'::text, 'email'::text, 'robot'::text]))); -- +goose Down ALTER TABLE backend.identities DROP CONSTRAINT identities_kind_chk; ALTER TABLE backend.identities ADD CONSTRAINT identities_kind_chk CHECK ((kind = ANY (ARRAY['telegram'::text, 'email'::text, 'robot'::text])));