ALTER TABLE activity ADD COLUMN user_id INTEGER NOT NULL REFERENCES user_ (id) ON UPDATE CASCADE ON DELETE CASCADE; ALTER TABLE activity DROP COLUMN sensitive;