execute($sql); $sql = "CREATE TABLE `qimall_addons_store_clerk_income_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `store_id` int(11) NOT NULL, `mall_id` int(11) NOT NULL, `total_amount` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '总金额', `total_count` int(11) NOT NULL DEFAULT 0 COMMENT '总次数', `total_income` decimal(12, 2) NOT NULL DEFAULT 0.00 COMMENT '总收益', `created_at` int(11) NOT NULL DEFAULT 0, `updated_at` int(11) NOT NULL DEFAULT 0, `status` int(4) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 COMMENT = '门店核销统计'"; $this->execute($sql); $sql="INSERT INTO `qimall_addons_store_menu`(`title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES ( '核销收益', '0', 105, 'store/clerk/index/clerk-income', '', 2, 0, 999, NULL, '', 1, 0, 0, 'Clerk', 1);"; $this->execute($sql); } /** * {@inheritdoc} */ public function safeDown() { echo "M240508015929CreateTableQimallAddonsStoreClerkIncome cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M240424015929AlterQimallAddonsStoreSettings cannot be reverted.\n"; return false; } */ }