ALTER TABLE `cart` ADD `session_id` VARCHAR(255) NULL AFTER `user_id`;
ALTER TABLE `cart` MODIFY `user_id` INT NULL;
