
-- +migrate Up
ALTER TABLE `users` ADD COLUMN `accepted_privacy_notice_version` VARCHAR(255) COMMENT '同意済みプライバシーポリシーバージョン' AFTER `accepted_eula_version`;
ALTER TABLE `users_archive` ADD COLUMN `accepted_privacy_notice_version` VARCHAR(255) COMMENT '同意済みプライバシーポリシーバージョン' AFTER `accepted_eula_version`;
insert into terms(terms.document_type, terms.version) values('PrivacyNotice', 'V0.1');
commit;

-- +migrate Down
ALTER TABLE `users` DROP COLUMN `accepted_privacy_notice_version`;
ALTER TABLE `users_archive` DROP COLUMN `accepted_privacy_notice_version`;
delete from terms where terms.document_type = 'PrivacyNotice' and terms.version = 'V0.1';
commit;