START TRANSACTION;

ALTER TABLE quota_request DROP COLUMN IF EXISTS chart_links;

ALTER TABLE quota_request ADD COLUMN IF NOT EXISTS calculations TEXT NOT NULL DEFAULT '';
ALTER TABLE quota_request ALTER COLUMN calculations DROP default;

COMMIT;
