ALTER TABLE `system_post` ADD `post_share` VARCHAR(255) NOT NULL AFTER `Type`; ALTER TABLE `system_user` ADD `user_api_token` TEXT NOT NULL AFTER `user_employment_date`; ALTER TABLE `system_post` ADD `ThirdPartyPrice` DECIMAL NOT NULL AFTER `post_price`; ALTER TABLE `system_post` CHANGE `ThirdPartyPrice` `ThirdPartyPrice` TEXT NOT NULL; ALTER TABLE `system_post` ADD `post_preorder` CHAR(1) NOT NULL AFTER `post_order`, ADD `post_preorder_quantity` DECIMAL(10,0) NOT NULL AFTER `post_preorder`; ALTER TABLE `system_product_movement` CHANGE `movement_current` `movement_current` INT NOT NULL; ALTER TABLE `system_product_movement` CHANGE `movement_balance` `movement_balance` INT(0) UNSIGNED NOT NULL; ALTER TABLE `system_customer` ADD `customer_status` ENUM('active','inactive') NOT NULL AFTER `customer_date`; ALTER TABLE `system_post` ADD `post_preorder` CHAR(1) NOT NULL AFTER `post_order`, ADD `post_preorder_quantity` DECIMAL(10,0) NOT NULL AFTER `post_preorder`; ALTER TABLE `system_product_movement` CHANGE `movement_balance` `movement_balance` INT(0) NOT NULL; ALTER TABLE `system_post` ADD `post_content_pre` TEXT NOT NULL AFTER `post_content_less`; ALTER TABLE `system_post` ADD `post_file_status` CHAR(1) NOT NULL AFTER `post_file`; ALTER TABLE `website_invoice` ADD `invoice_click_payment` TINYINT(3) NOT NULL COMMENT 'Count customer total click payment' AFTER `invoice_status`; ALTER TABLE `system_customer` CHANGE `customer_type` `customer_type` ENUM('customer','supplier','agent','wholesaler') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `system_customer` ADD `customer_status` ENUM('active', 'inactive') NOT NULL AFTER `customer_date`; ALTER TABLE `system_user` ADD `user_api_binding_id` INT(10) NOT NULL AFTER `user_api_token`; ALTER TABLE `system_company` ADD `company_binding_id` INT(10) NOT NULL AFTER `company_id`; ALTER TABLE `system_quotation_payment` CHANGE `payment_status` `payment_status` ENUM('failed','hold','reject','chargeback','cancelled','blocked','completed','F.O.C') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `system_quotation` CHANGE `quotation_status` `quotation_status` ENUM('pending','web-pending','progress','combined','confirmed','cancelled','F.O.C') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `website_invoice` CHANGE `invoice_payment` `invoice_payment` CHAR(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT 'molpay = 0, bank_transfer =1, eghl = 2, default = 9, by_cash =3, by_credit = 4, by_debit = 5,'; ALTER TABLE `website_invoice` ADD `Type` ENUM('','pos') NOT NULL AFTER `invoice_so`; ALTER TABLE `website_invoice` ADD `PosData` TEXT NOT NULL AFTER `Type`; ALTER TABLE `system_post` ADD `post_tag` TEXT NOT NULL AFTER `post_setting`; ALTER TABLE `system_post` ADD `post_expired` DATE NOT NULL AFTER `post_modified`; ALTER TABLE `website_voucher` CHANGE `voucher_type` `voucher_type` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `system_customer` ADD `customer_purchase_count` SMALLINT(5) NOT NULL AFTER `customer_visit_count`, ADD `customer_last_purchase` DATETIME NOT NULL AFTER `customer_purchase_count`; ALTER TABLE `website_invoice` ADD `invoice_gst_detail` TEXT NOT NULL AFTER `invoice_remark`; ALTER TABLE `system_customer` ADD `customer_nric` VARCHAR(50) NOT NULL AFTER `customer_name`; ALTER TABLE `system_user` ADD `user_developer` ENUM('no','yes') NOT NULL AFTER `user_id`; ALTER TABLE `website_voucher` ADD `voucher_by_time` VARCHAR(255) NOT NULL AFTER `voucher_code`; ALTER TABLE `website_invoice` ADD `invoice_sales_person` INT NOT NULL AFTER `PosData`; ALTER TABLE `website_invoice` ADD `invoice_payment_amount` DECIMAL(10,2) NOT NULL AFTER `invoice_gst_detail`; ALTER TABLE `website_invoice` ADD `invoice_rounding` DECIMAL(10,2) NOT NULL AFTER `invoice_payment_amount`; ALTER TABLE `system_product_movement_log` CHANGE `log_type` `log_type` ENUM('order','purchase-order','received','issue','return','quotation') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `system_post` ADD `PackageHide` ENUM('','yes') NOT NULL AFTER `Type`; ALTER TABLE `system_user` ADD `user_permission2` LONGTEXT NOT NULL AFTER `user_permission`; ALTER TABLE `system_quotation_dn` ADD `dn_type` ENUM('','purchase_return') NOT NULL AFTER `dn_total`; ALTER TABLE `system_user` CHANGE `user_permission` `user_permission` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; ALTER TABLE `website_invoice` ADD `invoice_return_product` LONGTEXT NOT NULL AFTER `invoice_api`, ADD `invoice_return_total_details` LONGTEXT NOT NULL AFTER `invoice_return_product`; ALTER TABLE `website_invoice` ADD `invoice_return_rounding` DECIMAL(10,2) NOT NULL AFTER `invoice_return_product`, ADD `invoice_return_total` DECIMAL(10,2) NOT NULL AFTER `invoice_return_rounding`; ALTER TABLE `system_shift` ADD `shift_cash` DECIMAL(10,2) NOT NULL AFTER `shift_open`, ADD `shift_return` DECIMAL(10,2) NOT NULL AFTER `shift_cash`; ALTER TABLE `website_invoice` ADD `invoice_pos_login` INT NOT NULL AFTER `PosData`; // add purchase return tab ALTER TABLE `system_product_return` ADD `product_return_type` ENUM('','purchase_return') NOT NULL AFTER `product_return_so`; ALTER TABLE `system_post` CHANGE `post_title` `post_title` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; // test add quotation area and state ALTER TABLE `system_quotation` ADD `quotation_area` VARCHAR(25) NOT NULL AFTER `quotation_company_details`, ADD `quotation_state` VARCHAR(25) NOT NULL AFTER `quotation_area`; ALTER TABLE `system_quotation` ADD `quotation_printed` ENUM('no','yes') NOT NULL DEFAULT 'no' AFTER `quotation_date_term`; ALTER TABLE `website_invoice` ADD `invoice_printer` ENUM('no','yes') NOT NULL DEFAULT 'no' AFTER `invoice_print`; ALTER TABLE `system_post` ADD `Temp` TEXT NOT NULL AFTER `post_modified`; ALTER TABLE `website_sku` ADD `Temp` TEXT NOT NULL AFTER `sku_qty`; ALTER TABLE `ProductTrigger` CHANGE `CreatedDate` `CreatedDate` DATE NOT NULL; ALTER TABLE `ProductTrigger` ADD `ModifiedDate` DATETIME NOT NULL AFTER `CreatedDate`; ALTER TABLE `website_invoice_payment` ADD `payment_boost` DECIMAL(10,2) NOT NULL AFTER `payment_cheque_refer`, ADD `payment_boost_refer` TEXT NOT NULL AFTER `payment_boost`; ALTER TABLE `website_invoice` ADD `invoice_product_edit` LONGTEXT NOT NULL AFTER `invoice_product`, ADD `invoice_product_edit_system` ENUM('0','1') NOT NULL AFTER `invoice_product_edit`; ALTER TABLE `system_product_return` ADD `product_related_do` VARCHAR(150) NOT NULL AFTER `product_return_so`; Jimmy new add ALTER TABLE `system_company` ADD `company_limit` DECIMAL(10,2) NOT NULL DEFAULT '0.00' AFTER `company_code`;