/* Warnings: - A unique constraint covering the columns `[business_activity_id,postal_code,national_id]` on the table `customer_individuals` will be added. If there are existing duplicate values, this will fail. - A unique constraint covering the columns `[business_activity_id,postal_code,registration_number]` on the table `customer_legal` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE `customer_individuals` MODIFY `first_name` VARCHAR(255) NULL, MODIFY `last_name` VARCHAR(255) NULL, MODIFY `national_id` CHAR(10) NULL, MODIFY `mobile_number` CHAR(15) NULL, MODIFY `postal_code` CHAR(10) NULL, MODIFY `economic_code` CHAR(14) NULL; -- AlterTable ALTER TABLE `customer_legal` MODIFY `name` VARCHAR(255) NULL, MODIFY `economic_code` CHAR(11) NULL, MODIFY `postal_code` CHAR(10) NULL; -- CreateIndex CREATE UNIQUE INDEX `customer_individuals_business_activity_id_postal_code_nation_key` ON `customer_individuals`(`business_activity_id`, `postal_code`, `national_id`); -- CreateIndex CREATE UNIQUE INDEX `customer_legal_business_activity_id_postal_code_registration_key` ON `customer_legal`(`business_activity_id`, `postal_code`, `registration_number`);