You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/sql/user_profile.sql

11 lines
793 B
MySQL

-- Import this file before deploying registration and account profile fields.
ALTER TABLE `user`
ADD COLUMN IF NOT EXISTS `last_name` varchar(80) NOT NULL DEFAULT '' AFTER `email`,
ADD COLUMN IF NOT EXISTS `first_name` varchar(80) NOT NULL DEFAULT '' AFTER `last_name`,
ADD COLUMN IF NOT EXISTS `phone` varchar(32) NOT NULL DEFAULT '' AFTER `first_name`,
ADD COLUMN IF NOT EXISTS `country` varchar(100) NOT NULL DEFAULT '' AFTER `phone`,
ADD COLUMN IF NOT EXISTS `province` varchar(100) NOT NULL DEFAULT '' AFTER `country`,
ADD COLUMN IF NOT EXISTS `city` varchar(100) NOT NULL DEFAULT '' AFTER `province`,
ADD COLUMN IF NOT EXISTS `address` varchar(255) NOT NULL DEFAULT '' AFTER `city`,
ADD COLUMN IF NOT EXISTS `postal_code` varchar(32) NOT NULL DEFAULT '' AFTER `address`;