-- v1.2.0 — User Forms & Fields
-- Run this migration once on your database before deploying v1.2.0

ALTER TABLE forms
    ADD COLUMN owner_id INT NULL DEFAULT NULL AFTER id,
    ADD COLUMN visibility ENUM('private','public') NOT NULL DEFAULT 'public' AFTER status;

ALTER TABLE fields
    ADD COLUMN owner_id INT NULL DEFAULT NULL AFTER id,
    ADD COLUMN visibility ENUM('private','public') NOT NULL DEFAULT 'public' AFTER status;
