-- +mixmaker Up
ALTER TABLE players
    ALTER COLUMN account_id DROP NOT NULL;

-- +mixmaker Down
DELETE FROM rsvps WHERE player_id IN (SELECT id FROM players WHERE account_id IS NULL);
DELETE FROM players WHERE account_id IS NULL;
ALTER TABLE players
    ALTER COLUMN account_id SET NOT NULL;
