Zkontrolovat sesssion
chybou frameworku yii se nedrží session!
nutno otestovat a zkontrolovat aby ve /vendror/yiisoft/web/User bylo zakomentováno:
/* if ($this->getIdentity(false) === null) {
$this->switchIdentity(null);
}*/
Vyčištění databáze:
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `account`;
TRUNCATE TABLE `account_machine`;
TRUNCATE TABLE `addition_material`;
TRUNCATE TABLE `address`;
TRUNCATE TABLE `admin_storage_file`;
TRUNCATE TABLE `admin_storage_folder`;
TRUNCATE TABLE `admin_storage_image`;
TRUNCATE TABLE `admin_user_auth_notification`;
TRUNCATE TABLE `admin_user_device`;
TRUNCATE TABLE `admin_user_group`;
TRUNCATE TABLE `admin_user_login`;
TRUNCATE TABLE `basket`;
TRUNCATE TABLE `category`;
TRUNCATE TABLE `cms_log`;
TRUNCATE TABLE `cms_nav`;
TRUNCATE TABLE `cms_nav_item`;
TRUNCATE TABLE `cms_nav_item_page`;
TRUNCATE TABLE `cms_nav_item_page_block_item`;
TRUNCATE TABLE cms_nav_item_redirect;
TRUNCATE TABLE contact;
TRUNCATE TABLE coupon;
TRUNCATE TABLE deliverynote_item;
TRUNCATE TABLE deliverynote;
TRUNCATE TABLE document_template;
TRUNCATE TABLE document_template_item;
TRUNCATE TABLE document_template_section;
TRUNCATE TABLE document_template_section_type;
TRUNCATE TABLE email_template;
TRUNCATE TABLE email_template_translation;
TRUNCATE TABLE g_gallery;
TRUNCATE TABLE g_photo;
TRUNCATE TABLE invoice;
TRUNCATE TABLE invoice_item;
TRUNCATE TABLE kanban_board;
kanban_board_user_assignment
kanban_bucket
kanban_task
TRUNCATE TABLE material;
TRUNCATE TABLE materialgroup;
TRUNCATE TABLE materialsheet;
TRUNCATE TABLE materialsubgroup;
TRUNCATE TABLE material_machine;
TRUNCATE TABLE order;
TRUNCATE TABLE order_item;
TRUNCATE TABLE passage;
pas_correction_quantity
pas_correction_weight
TRUNCATE TABLE person;
TRUNCATE TABLE postpress;
TRUNCATE TABLE postpress_type;
TRUNCATE TABLE pricelist;
TRUNCATE TABLE product_machine;
TRUNCATE TABLE product_material;
TRUNCATE TABLE profile;
TRUNCATE TABLE sheet;
TRUNCATE TABLE social_account;
TRUNCATE TABLE source;
TRUNCATE TABLE source_bucket;
TRUNCATE TABLE source_type;
TRUNCATE TABLE tbl_dynagrid;
TRUNCATE TABLE tbl_dynagrid_dtl;
TRUNCATE TABLE tmp_uploaded_files;
TRUNCATE TABLE token;
TRUNCATE TABLE uploaded_files;
TRUNCATE TABLE uploaded_orderfiles;
TRUNCATE TABLE userauth_user;
TRUNCATE TABLE versioning_record;
TRUNCATE TABLE versioning_route;
delete FROM `user` WHERE id > 2
change 2
delete FROM `machine` WHERE id > 3
delete FROM `product` WHERE id > 4
upravit settings_settings
SET FOREIGN_KEY_CHECKS = 1;
kontrola dashboard panel