You can buy this project and download/modify it how often you want.
ALTER TABLE dialogs ADD COLUMN is_favourite BOOLEAN NOT NULL DEFAULT FALSE