Upgrade guide

Instructions to upgrade S-Cart from 6.5 to 6.6

Step 1: Create data table to management template

CREATE TABLE `sc_admin_template` (
    `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
    `key` VARCHAR(100) NOT NULL COLLATE 'utf8mb4_unicode_ci',
    `name` VARCHAR(100) NOT NULL COLLATE 'utf8mb4_unicode_ci',
    `status` INT(11) NOT NULL DEFAULT '0',
    `created_at` TIMESTAMP NULL DEFAULT NULL,
    `updated_at` TIMESTAMP NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `sc_admin_template_key_unique` (`key`) USING BTREE
);



Step 2. Add new column template in table  shop_store_block

ALTER TABLE `sc_shop_store_block` ADD COLUMN `abc` VARCHAR(50) NOT NULL AFTER `template`;


Step 3. Update value for column template

Update the value for column shop_store_block.template is the template you are using

Step 4. Update composer.json

"s-cart/core": "~6.6.0"


Step 5: Update core

php composer.phar update


- Run command line php artisan sc:info to get information.
Done :)

Related topics

Latest Document