-- For activity table, remove the user_id column and add activity_id

ALTER TABLE activity ADD COLUMN activity_id Text;
ALTER TABLE activity DROP COLUMN user_id;