CREATE TABLE `pp_redirects` ( `id` INT NOT NULL AUTO_INCREMENT, `from` TEXT NOT NULL, `to` TEXT NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8mb4_unicode_ci';
ALTER TABLE `pp_redirects` ADD COLUMN `lang_id` VARCHAR(50) NOT NULL DEFAULT '' AFTER `to`;
ALTER TABLE `pp_redirects` ADD COLUMN `date_add` TIMESTAMP NULL DEFAULT CURTIME() AFTER `lang_id`;
ALTER TABLE `pp_redirects` ADD COLUMN `product_id` INT NULL DEFAULT NULL AFTER `to`;
CREATE TABLE pp_routes ( id INT AUTO_INCREMENT PRIMARY KEY, pattern VARCHAR(255) NOT NULL, destination VARCHAR(255) NOT NULL );
ALTER TABLE `pp_routes` ADD COLUMN `product_id` INT NULL DEFAULT NULL AFTER `destination`;
ALTER TABLE `pp_routes` ADD COLUMN `lang_id` VARCHAR(50) NULL DEFAULT NULL AFTER `product_id`;