ALTER TABLE races ADD COLUMN IF NOT EXISTS finish_place TEXT;

ALTER TABLE races DROP CONSTRAINT IF EXISTS races_status_check;
ALTER TABLE races ADD CONSTRAINT races_status_check
  CHECK (status IS NULL OR status IN ('planned', 'registered', 'completed'));
