From 427370c49fc76b564879b25c8aacd4e092cf779e Mon Sep 17 00:00:00 2001 From: sunday <153788231@qq.com> Date: Sat, 25 Nov 2023 21:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + database/config.php | 17 - ...13_07_02_165645_create_yz_site_setting.php | 37 - ...4_20_151900_create_uploads_table_zgldh.php | 40 - ...512_add_polymorphic_columns_to_uploads.php | 45 - .../2015_12_21_111514_create_sms_table.php | 68 -- ...03_06_200815_create_ims_yz_goods_table.php | 65 -- ...200948_create_ims_yz_goods_param_table.php | 40 - ..._200953_create_ims_yz_goods_spec_table.php | 44 - ...59_create_ims_yz_goods_spec_item_table.php | 44 - ...101149_create_ims_yz_member_cart_table.php | 43 - ...09_create_ims_yz_member_favorite_table.php | 39 - ...01409_create_ims_yz_member_group_table.php | 39 - ...409_create_ims_yz_member_history_table.php | 40 - ...01927_create_ims_yz_member_level_table.php | 44 - ..._create_ims_yz_member_app_wechat_table.php | 43 - ...4505_create_ims_yz_member_wechat_table.php | 46 - ...31_create_ims_yz_member_mini_app_table.php | 43 - ...reate_ims_yz_account_open_config_table.php | 40 - ...7_104720_create_ims_yz_member_qq_table.php | 50 - ...7_104746_create_ims_yz_qq_config_table.php | 40 - ...3_07_110235_create_ims_yz_member_table.php | 60 -- ...07_111409_create_ims_yz_category_table.php | 49 - ...03_07_111521_create_ims_yz_brand_table.php | 43 - ..._07_111553_create_ims_yz_comment_table.php | 50 - ...1632_create_ims_yz_goods_notices_table.php | 36 - ...4208_create_ims_yz_member_unique_table.php | 39 - ...121006_create_ims_yz_goods_share_table.php | 44 - ...308_create_ims_yz_goods_discount_table.php | 39 - ...324_create_ims_yz_goods_dispatch_table.php | 41 - ...07_121334_create_ims_yz_dispatch_table.php | 55 -- ..._07_125312_create_ims_yz_address_table.php | 56 -- ...3_07_125453_create_ims_yz_street_table.php | 55 -- ..._165530_create_ims_yz_permission_table.php | 38 - ..._03_07_170917_create_ims_yz_role_table.php | 41 - ...7_170931_create_ims_yz_user_role_table.php | 37 - ...547_create_ims_yz_goods_category_table.php | 43 - ..._07_224609_create_ims_yz_setting_table.php | 39 - ...37_create_ims_yz_member_relation_table.php | 44 - ..._142918_create_ims_yz_goods_sale_table.php | 42 - ...51154_create_ims_yz_goods_option_table.php | 51 - ...554_create_ims_yz_sms_send_limit_table.php | 41 - ..._03_09_135930_create_ims_yz_menu_table.php | 47 - ...39_create_ims_yz_goods_privilege_table.php | 46 - ...4956_create_ims_yz_dispatch_type_table.php | 37 - ...5359_create_ims_yz_order_express_table.php | 43 - ...15425_create_ims_yz_order_remark_table.php | 40 - ...03_10_215716_create_ims_yz_order_table.php | 55 -- ...215727_create_ims_yz_order_goods_table.php | 49 - ...10_215802_create_ims_yz_pay_type_table.php | 37 - ..._11_005752_create_ims_yz_options_table.php | 36 - ...reate_ims_yz_order_operation_log_table.php | 43 - ...4258_create_ims_yz_order_mapping_table.php | 39 - ...e_ims_yz_template_message_record_table.php | 49 - ...6_create_ims_yz_template_message_table.php | 42 - ...020_create_ims_yz_pay_access_log_table.php | 41 - ..._28_152122_create_ims_yz_pay_log_table.php | 43 - ...8_create_ims_yz_pay_refund_order_table.php | 45 - ...5_create_ims_yz_pay_request_data_table.php | 41 - ..._create_ims_yz_pay_response_data_table.php | 40 - ...8_203149_create_ims_yz_pay_order_table.php | 45 - ...3633_create_ims_yz_member_income_table.php | 46 - ...30_171219_create_ims_yz_withdraw_table.php | 47 - ...0_create_ims_yz_balance_recharge_table.php | 45 - ...7_create_ims_yz_balance_transfer_table.php | 42 - ..._07_163632_create_ims_yz_balance_table.php | 46 - ...0345_create_ims_yz_order_address_table.php | 53 - ...639_add_ed_areaids_to_goods_sale_table.php | 38 - ..._164426_create_ims_yz_coupon_log_table.php | 44 - ...5_10_164426_create_ims_yz_coupon_table.php | 74 -- ...4426_create_ims_yz_member_coupon_table.php | 43 - ...add_deleted_at_to_ims_yz_member_coupon.php | 38 - ...83520_add_level_limit_to_ims_yz_coupon.php | 36 - ...0_192431_create_ims_yz_order_pay_table.php | 47 - ...2017_05_10_223507_add_comment_add_type.php | 41 - ...create_ims_yz_pay_withdraw_order_table.php | 44 - ...oint_deduct_to_ims_yz_goods_sale_table.php | 34 - ...oint_deduct_to_ims_yz_goods_sale_table.php | 36 - ...elete_point_to_ims_yz_goods_sale_table.php | 34 - ...5_add_point_to_ims_yz_goods_sale_table.php | 36 - ...3_add_delede_at_to_ims_yz_member_table.php | 53 - ...d_goods_market_price_order_goods_table.php | 45 - ...253_add_order_pay_id_to_yz_order_table.php | 40 - ...dated_at_to_ims_yz_member_unique_table.php | 46 - ...602_add_note_to_yz_order_address_table.php | 38 - ...828_create_ims_yz_return_express_table.php | 42 - ...923_create_ims_yz_resend_express_table.php | 42 - ...2017_05_24_105902_add_data_ims_yz_menu.php | 332 ------- ...7_06_01_153820_add_data_to_yz_pay_type.php | 82 -- ...le_time_limit_to_goods_privilege_table.php | 34 - ...le_time_limit_to_goods_privilege_table.php | 42 - ...017_06_09_163600_add_menu_data_to_menu.php | 28 - .../2017_06_13_160452_create_jobs_table.php | 39 - ...2_create_ims_yz_exhelper_express_table.php | 43 - ...528_create_ims_yz_exhelper_goods_table.php | 35 - ...535_create_ims_yz_exhelper_order_table.php | 37 - ...542_create_ims_yz_exhelper_print_table.php | 36 - ...74557_create_ims_yz_exhelper_sys_table.php | 36 - ...42350_add_order_sn_to_balance_transfer.php | 40 - ...07_12_103441_add_ed_full_to_goods_sale.php | 45 - ...20218_create_ims_yz_goods_coupon_table.php | 44 - ...create_ims_yz_goods_coupon_queue_table.php | 47 - ...2348_add_servicetax_to_ims_yz_withdraw.php | 46 - ...4939_add_is_virtual_to_yz_member_table.php | 40 - ...hange_type_id_to_ims_yz_withdraw_table.php | 38 - ...2017_07_21_115131_add_data_to_pay_type.php | 36 - ...25_150523_add_vip_price_to_order_goods.php | 49 - ...424_update_engine_innodb_to_mc_members.php | 31 - ...95024_create_ims_yz_order_coupon_table.php | 49 - ...51_create_ims_yz_order_deduction_table.php | 49 - ...5459_change_title_in_order_goods_table.php | 34 - ...092854_update_field_type_to_yz_options.php | 34 - ...100838_add_cloud_pay_to_pay_type_table.php | 40 - ...30_change_display_order_to_yz_category.php | 34 - ..._150915_add_cash_pay_to_pay_type_table.php | 35 - ...547_create_ims_yz_order_discount_table.php | 48 - ...eate_ims_yz_order_goods_discount_table.php | 48 - ...ate_ims_yz_order_goods_expansion_table.php | 43 - ...16_add_plugin_id_to_ims_yz_goods_table.php | 34 - ...823_create_ims_yz_goods_div_from_table.php | 38 - ...243_create_ims_yz_point_transfer_table.php | 45 - ...09_05_163810_add_enabled_to_yz_options.php | 40 - ...552_add_app_to_pay_type_yangming_table.php | 38 - ..._custom_and_validity_to_yzmember_table.php | 45 - ...42739_update_field_content_to_yz_goods.php | 30 - ...reate_ims_yz_admin_operation_log_table.php | 49 - ...52105_add_member_form_to_ims_yz_member.php | 34 - ...6_restructure_to_yz_goods_coupon_table.php | 73 -- ...17_09_25_192336_add_field_to_yz_member.php | 40 - ...53_add_comment_id_to_order_goods_table.php | 32 - ...4605_create_ims_yz_order_setting_table.php | 44 - ...09_27_151108_update_field_to_yz_member.php | 40 - ...60746_add_withdraw_mobile_to_yz_member.php | 37 - ...8_create_ims_yz_withdraw_set_log_table.php | 42 - ...2017_09_29_181923_change_dispatch_type.php | 44 - ...10_10_153038_create_ims_cron_job_table.php | 38 - ...0_153103_create_ims_cron_manager_table.php | 35 - ...17_10_14_114327_add_plugin_id_to_order.php | 36 - ...dd_payment_amount_to_order_goods_table.php | 50 - ...ate_ims_yz_order_goods_deduction_table.php | 52 - ...7_200205_create_ims_yz_deduction_table.php | 54 - ...00951_create_ims_yz_virtual_coin_table.php | 52 - ...d_source_member_id_to_credit_log_table.php | 28 - ...2017_10_23_145507_add_uid_to_admin_log.php | 42 - ...5_create_ims_yz_member_bank_card_table.php | 42 - .../2017_10_24_140051_fix_order_pay_id.php | 43 - ...1324_create_ims_yz_member_record_table.php | 44 - ...add_field_to_yz_member_bank_card_table.php | 48 - ...field_manual_type_to_yz_withdraw_table.php | 35 - ...44_add_field_wechat_to_yz_member_table.php | 35 - ...ate_plugin_id_to_ims_yz_category_table.php | 38 - .../2017_11_03_102200_remake_pay_type.php | 57 -- ...1_create_ims_yz_message_template_table.php | 45 - ...dd_virtual_sales_to_ims_yz_goods_table.php | 38 - ...11_13_162143_add_yunpay_to_yz_pay_type.php | 33 - ...ate_uuid_to_ims_yz_member_wechat_table.php | 38 - ...451_create_ims_yz_point_love_set_table.php | 40 - ...7_11_30_153224_update_text_yz_pay_type.php | 31 - ...ims_yz_balance_recharge_activity_table.php | 41 - ...340_add_is_push_to_yz_goods_sale_table.php | 45 - ...350_create_ims_yz_member_address_table.php | 45 - ...004_add_street_to_ims_yz_order_address.php | 38 - ..._01_04_105037_create_failed_jobs_table.php | 37 - ..._create_ims_yz_exhelper_senduser_table.php | 45 - ...51038_add_another_to_yz_pay_type_table.php | 33 - ...d_field_award_balance_to_yz_goods_sale.php | 37 - ...add_interests_rules_to_yz_member_level.php | 40 - ...ate_field_poundage_rate_to_yz_withdraw.php | 33 - ...65632_create_yz_search_filtering_table.php | 45 - ..._154624_create_yz_goods_limitbuy_table.php | 40 - ...170942_create_yz_goods_filtering_table.php | 37 - ...52739_add_ims_yz_goods_privilege_table.php | 46 - ...2018_04_10_141936_add_mark_to_yz_order.php | 38 - ...me_moneycount_to_member_relation_table.php | 34 - ...s_recommend_and_desc_to_yz_brand_table.php | 45 - .../2018_04_27_102921_create_yz_adv_table.php | 38 - ...eate_ims_yz_goods_return_address_table.php | 55 -- ..._07_150312_add_is_complex_to_yz_coupon.php | 34 - ...093057_update_thumb_to_yz_goods_option.php | 34 - ...6_090439_add_filter_ids_to_yz_category.php | 34 - ...7_104914_add_top_show_to_options_table.php | 35 - ...5_19_172742_add_yz_openid_to_yz_member.php | 38 - ...eate_yz_template_message_default_table.php | 39 - ...2_104148_create_yz_goods_service_table.php | 40 - ...lt_and_notice_type_to_message_template.php | 35 - ...018_05_28_140403_delete_order_discount.php | 29 - ...4_a_change_pay_time_to_order_pay_table.php | 36 - ..._06_12_140403_create_status_flow_table.php | 122 --- ...3_140403_add_data_to_status_flow_table.php | 99 -- ..._remittance_audit_to_status_flow_table.php | 66 -- ...6_26_140403_add_data_to_pay_type_table.php | 54 - ...06_27_140403_add_note_to_process_table.php | 37 - ...date_telephone_to_goods_return_address.php | 38 - ...9_140403_add_is_pending_to_order_table.php | 41 - ...2018_06_29_140403_create_order_pending.php | 43 - ...018_06_6_140403_create_order_pay_order.php | 54 - ...5431_add_owner_id_to_yz_member_history.php | 38 - ...115550_add_field_to_yz_member_relation.php | 34 - ...7_24_103357_repair_data_to_yz_withdraw.php | 31 - ...member_relation_order_statistics_table.php | 49 - ...ms_yz_member_relation_statistics_table.php | 41 - ...73303_create_yz_order_operation_tables.php | 78 -- ...091223_create_ims_yz_order_count_table.php | 45 - .../2018_08_31_173303_update_cache.php | 28 - ...05_173303_add_plugin_id_to_member_cart.php | 40 - ...9_090305_modify_group_field_yz_setting.php | 34 - ...0_144727_add_index_to_yz_setting_table.php | 36 - ...174544_add_field_uniacid_to_yz_process.php | 56 -- ..._12_091100_create_yz_goods_video_table.php | 40 - ..._141314_create_yz_member_del_log_table.php | 40 - .../2018_09_17_173303_clear_cache.php | 28 - ...create_ims_yz_order_plugin_bonus_table.php | 47 - ..._27_142937_update_member_del_member_id.php | 35 - ...12_add_status_to_yz_order_plugin_bonus.php | 52 - ..._create_ims_yz_order_created_job_table.php | 46 - ...613_create_ims_yz_order_paid_job_table.php | 45 - ...create_ims_yz_order_received_job_table.php | 46 - ...5_104737_create_yz_advertisement_table.php | 43 - ...82135_add_field_to_yz_balance_recharge.php | 34 - ...18_110120_add_invite_code_to_yz_member.php | 35 - ...update_balance_withdraw_success_notice.php | 28 - ..._21_152934_create_ims_yz_member_parent.php | 40 - ...1_152950_create_ims_yz_member_children.php | 40 - ...514_create_ims_yz_point_recharge_table.php | 62 -- ...25_add_selfmoney_to_yz_member_relation.php | 34 - ...2018_10_23_155026_update_order_express.php | 50 - ...103537_create_ims_yz_phone_attribution.php | 45 - ...4_111818_create_yz_operation_log_table.php | 50 - ...14510_create_ims_yz_member_lower_count.php | 43 - ...14534_create_ims_yz_member_lower_order.php | 47 - ...create_ims_yz_order_income_count_table.php | 66 -- ..._190843_create_ims_yz_order_statistics.php | 46 - ..._add_become_term_to_yz_member_relation.php | 42 - ..._become_goods_id_to_yz_member_relation.php | 55 -- ..._154225_add_index_to_order_goods_table.php | 39 - ...1_07_091011_insert_data_to_yz_pay_type.php | 52 - ...1_20_154225_add_events_to_yz_order_job.php | 48 - ...18_11_20_154225_add_fields_to_yz_order.php | 48 - ..._is_member_deleted_to_yz_member_coupon.php | 35 - ...225_add_index_to_member_children_table.php | 36 - ..._refund_to_yz_goods_and_yz_order_table.php | 56 -- ...652_create_ims_yz_pay_type_group_table.php | 37 - ...50928_add_data_to_pay_type_group_table.php | 60 -- ...4705_add_field_group_to_pay_type_table.php | 35 - ...60955_add_data_group_to_pay_type_table.php | 94 -- ...171609_create_ims_yz_category_discount.php | 42 - ...54225_add_index_to_order_address_table.php | 38 - ..._12_22_154225_add_index_to_order_table.php | 42 - ...1247_create_ims_yz_order_request_table.php | 44 - ...0955_add_upgrade_at_to_yz_member_table.php | 31 - ...ate_ims_yz_member_invitation_log_table.php | 38 - ...d_min_point_deduct_to_goods_sale_table.php | 41 - ...1_04_173014_add_plugin_id_to_yz_coupon.php | 34 - ...019_create_ims_yz_exhelper_panel_table.php | 46 - ...01_08_111342_create_ims_yz_invite_page.php | 40 - ...19_01_11_115255_add_ims_yz_invite_page.php | 34 - ...12_123854_create_yz_member_month_order.php | 40 - ..._create_ims_yz_member_goods_invite_log.php | 39 - ..._15_142603_create_yz_member_month_rank.php | 38 - ...address_to_yz_order_and_yz_goods_table.php | 53 - ...54225_add_separate_to_yz_member_income.php | 34 - ...18_170914_add_zipcode_to_order_address.php | 34 - .../2019_01_21_111731_add_order_invoice.php | 51 - ...719_add_auto_receipt_to_yz_order_table.php | 37 - ...05_add_hotel_to_yz_dispatch_type_table.php | 37 - ...19_02_12_154823_add_ims_yz_goods_table.php | 34 - ...91724_add_poundage_type_to_yz_withdraw.php | 35 - ...2019_02_15_105631_update_order_invoice.php | 35 - ..._02_18_165023_create_dispatch_classify.php | 41 - ..._175024_create_admin_permissions_table.php | 39 - ...175336_create_ims_yz_admin_users_table.php | 50 - ...175501_create_ims_yz_admin_roles_table.php | 36 - ...07_create_ims_yz_admin_role_user_table.php | 35 - ...ate_ims_yz_admin_permission_role_table.php | 34 - ...156_create_ims_yz_system_setting_table.php | 39 - ..._28_105711_create_table_yz_uniacid_app.php | 60 -- ...160419_create_ims_yz_wechat_rule_table.php | 46 - ...reate_ims_yz_wechat_rule_keyword_table.php | 46 - .../2019_03_01_164323_update_invoice_call.php | 35 - ..._03_12_161739_create_yz_app_user_table.php | 40 - ...5716_create_ims_yz_users_profile_table.php | 41 - ...8_094642_create_ims_yz_core_attachment.php | 44 - ..._update_share_to_yz_goods_coupon_table.php | 38 - ...ate_yz_shopping_share_coupon_log_table.php | 44 - ..._create_yz_shopping_share_coupon_table.php | 43 - ...add_columns_to_ims_yz_goods_sale_table.php | 38 - ...172217_create_ims_yz_point_queue_table.php | 51 - ...23_create_ims_yz_point_queue_log_table.php | 48 - ...4_04_160355_create_ims_yz_qrcode_table.php | 51 - ...161601_create_ims_yz_qrcode_stat_table.php | 45 - ...lt_ed_money_to_ims_yz_goods_sale_table.php | 43 - ...5300_update_to_ims_yz_goods_sale_table.php | 29 - ...5424_create_membership_infomattion_log.php | 40 - ...4_add_share_page_deail_member_relation.php | 34 - ..._04_23_135825_min_app_template_message.php | 41 - .../2019_04_24_151910_add_form_id.php | 43 - ...add_pay_count_to_yz_member_lower_order.php | 37 - ...613_create_ims_yz_order_sent_job_table.php | 46 - ...to_yz_membership_infomattion_log_table.php | 37 - ..._add_poundage_to_ims_yz_point_transfer.php | 35 - .../2019_05_06_183349_create_teamOrder.php | 43 - ...00615_update_dispatc_first_piece_price.php | 35 - ...53_update_goods_dispatch_dispatc_price.php | 35 - ..._152940_add_message_template_news_link.php | 36 - ...ate_goods_dispatch_another_piece_price.php | 36 - ...29_create_yz_balance_covert_Love_table.php | 43 - .../2019_05_22_174303_add_service_fee.php | 35 - ...4_102640_create_yz_order_coupon_return.php | 38 - ...4_144547_create_ims_yz_order_fee_table.php | 47 - ...5_24_154225_add_fee_amount_to_yz_order.php | 34 - ..._05_28_143246_add_ims_yz_setting_table.php | 159 --- ...t_value_to_ims_yz_goods_discount_table.php | 35 - ...08_create_yz_synchronized_binder_table.php | 45 - ...30_172348_add_token_to_yz_member_table.php | 64 -- ...63831_create_yz_api_access_token_table.php | 38 - ...3831_create_yz_api_refresh_token_table.php | 38 - ..._06_06_102619_update_yz_setting_column.php | 35 - ...reate_ims_yz_order_coin_exchange_table.php | 44 - ...ims_yz_order_goods_coin_exchange_table.php | 44 - ...5_add_yz_member_relation_reward_points.php | 42 - ...oint_deduct_to_ims_yz_goods_sale_table.php | 40 - ...ims_yz_order_goods_coin_exchange_table.php | 36 - ...102621_create_ims_yz_first_order_table.php | 45 - ...d_goods_id_to_ims_yz_first_order_table.php | 36 - ...19_06_18_140102_add_column_in_app_user.php | 34 - ...update_goods_id_column_in_member_level.php | 34 - ...21_165645_create_yz_distribution_order.php | 41 - ...200_create_yz_goods_edit_disable_table.php | 43 - .../2019_07_01_105904_create_website_info.php | 51 - .../2019_07_02_094619_add_point_love_set.php | 35 - ...03_153836_update_yz_member_month_order.php | 39 - .../2019_07_05_151900_remove_third_level.php | 228 ----- ...72411_add_token_to_yz_member_min_table.php | 34 - ...default_value_to_yz_order_refund_table.php | 63 -- ...nsert_ims_yz_setting_supervisord_table.php | 37 - ...019_07_15_151900_remove_third_level_v2.php | 45 - ...te_ims_yz_excel_recharge_records_table.php | 43 - ...ate_ims_yz_excel_recharge_detail_table.php | 42 - ...00_add_index_openid_to_yz_member_table.php | 32 - ..._update_order_id_in_order_income_count.php | 38 - ...05_add_yz_order_pay_pay_sn_index_table.php | 32 - ...d_yz_balance_serial_number_index_table.php | 32 - ...yz_goods_limitbuy_goods_id_index_table.php | 33 - ...member_income_to_member_id_index_table.php | 33 - ..._member_min_app_to_open_id_index_table.php | 32 - ...61833_drop_index_in_order_income_count.php | 52 - ...1_add_job_id_to_yz_member_poster_table.php | 34 - .../2019_08_14_183505_add_yz_goods_table.php | 34 - ..._disable_records_from_yz_options_table.php | 31 - ...019_09_09_144118_update_yz_goods_title.php | 34 - ...4_uodate_yz_order_conpany_number_chang.php | 35 - ...d_introduce_to_yz_video_lecturer_table.php | 28 - ...e_mobile_yz_activity_apply_order_table.php | 28 - ...19_100159_add_thirdStatus_into_balance.php | 32 - ...9_19_100839_add_thirdStatus_into_point.php | 32 - ..._add_scan_pay_to_yz_pay_type_table.php.php | 35 - ...d_description_to_yz_member_level_table.php | 34 - ...ange_incometable_type_to_member_income.php | 34 - ...447_add_column_to_ims_yz_comment_table.php | 43 - ...m_performance_to_yz_member_level_table.php | 34 - ...635_add_is_top_to_yz_uniacid_app_table.php | 53 - ..._04_103336_create_ims_yz_member_douyin.php | 44 - ...019_11_08_171446_yz_member_mini_formid.php | 35 - ..._140134_change_type_to_ims_yz_withdraw.php | 34 - ...019_11_11_160016_add__is_hide_yz_brand.php | 32 - ...4016_create_ims_yz_order_deliver_table.php | 45 - ...e_relation_id_yz_member_relation_table.php | 36 - ...e_ims_yz_alipay_order_settle_log_table.php | 53 - ...7_create_ims_yz_alipay_pay_order_table.php | 48 - ...7_create_ims_yz_wechat_pay_order_table.php | 48 - ...ims_yz_wechat_profit_sharing_log_table.php | 53 - ...add_jsapi_pay_to_yz_pay_type_table.php.php | 32 - ...mber_card_pay_to_yz_pay_type_table.php.php | 32 - ...639_create_yz_order_goods_coupon_table.php | 70 -- ...d_aljsapi_pay_to_yz_pay_type_table.php.php | 32 - ...12_31_162947_add_remind_to_admin_users.php | 47 - ...01_07_141330_add_yz_dispatch_plugin_id.php | 34 - ...1_111102_update_addresaddress_add_area.php | 38 - ...1_add_hk_scan_pay_to_yz_pay_type_table.php | 34 - ...d_longitude_latitude_to_member_address.php | 48 - ...25_141330_add_yz_dispatch_type_columns.php | 48 - ...dd_yz_goods_dispatch_dispatch_type_ids.php | 34 - ...03_26_111102_update_dispatch_type_data.php | 72 -- ...7_151714_create_yz_job_heartbeat_table.php | 37 - ..._151729_create_yz_cron_heartbeat_table.php | 37 - ...dd_room_to_yz_order_income_count_table.php | 36 - ...0_160422_add_is_old_to_yz_member_table.php | 38 - ...722_create_shop_yz_member_alipay_table.php | 48 - ...e_amount_to_yz_alipay_order_settle_log.php | 34 - .../2020_04_28_072741_create_update_auth.php | 36 - ..._091715_create_yz_wq_version_log_table.php | 37 - ...60422_add_ip_to_yz_order_request_table.php | 35 - ...150717_update_yz_message_template_data.php | 157 --- ...35615_create_yz_member_merge_log_table.php | 37 - ...5_create_yz_official_website_theme_set.php | 99 -- ...eate_yz_official_website_multiple_list.php | 807 --------------- ...20_06_18_092757_add_column_to_yz_slide.php | 34 - ...121256_add_small_type_to_mini_template.php | 66 -- ...06_21_123208_add_data_to_mini_template.php | 35 - ...dd_hk_scan_alipay_to_yz_pay_type_table.php | 33 - ...06_30_110002_add_column_to_yz_category.php | 34 - ...71321_create_ims_yz_sys_msg_type_table.php | 78 -- ...172119_create_ims_yz_sys_msg_log_table.php | 48 - ...1453_create_yz_change_mobile_log_table.php | 40 - ...1135_create_yz_member_change_log_table.php | 37 - ...7_03_102525_upadte_official_field_size.php | 859 ---------------- ...e_ims_yz_bind_mobile_award_point_table.php | 40 - ...33_create_yz_order_expediting_delivery.php | 39 - ...4_091737_add_column_to_yz_member_level.php | 34 - ...14_113210_add_relation_id_to_point_log.php | 34 - ..._150717_create_yz_goods_small_code_url.php | 38 - ...7_20_145308_truncate_mini_app_template.php | 38 - ...eate_yz_order_address_update_log_table.php | 50 - ...4_add_confirm_pay_to_yz_pay_type_table.php | 42 - ...837_update_id_equal_4_yz_dispatch_type.php | 34 - ..._08_12_172252_create_yz_protocol_table.php | 51 - .../2020_08_19_151306_add_volume_to_goods.php | 34 - ...8_19_175555_add_volume_to_goods_option.php | 34 - ...1645_create_yz_order_service_fee_table.php | 44 - ...4_update_service_fee_to_yz_order_table.php | 34 - ..._21_105633_change_uid_to_member_coupon.php | 47 - .../2020_08_24_165645_fix_yz_order_job.php | 45 - ...751_add_wechat_h5_to_yz_pay_type_table.php | 42 - ...121_create_ims_yz_coupon_use_log_table.php | 43 - ..._03_135722_add_title_yz_protocol_table.php | 34 - ..._145909_create_ims_yz_income_log_table.php | 41 - ...26_create_ims_yz_withdraw_income_table.php | 41 - ...ate_ims_yz_withdraw_income_apply_table.php | 42 - ...3_add_near_expiration_to_member_coupon.php | 34 - ..._create_ims_yz_coupon_slide_show_table.php | 42 - ..._135224_create_ims_yz_admin_logs_table.php | 38 - ...4_093949_create_yz_order_invoice_table.php | 73 -- ...09_134832_alter_yz_member_income_table.php | 227 ----- ...32_alter_yz_member_income_unique_table.php | 32 - ...1840_create_yz_dispatch_type_set_table.php | 47 - ..._10_29_172635_update_mini_temp_uniacid.php | 34 - ..._buy_limit_to_yz_goods_privilege_table.php | 36 - ...dd_wechat_min_pay_to_yz_pay_type_table.php | 42 - ..._144955_add_is_all_send_goods_to_order.php | 37 - ...27_add_order_express_id_to_order_goods.php | 37 - ...create_ims_yz_member_lower_group_order.php | 43 - ..._become_goods_id_to_yz_member_relation.php | 38 - ...ange_is_all_send_goods_to_ims_yz_order.php | 33 - ...l_website_theme_set_add_identification.php | 923 ------------------ ...eate_ims_yz_core_attachment_tags_table.php | 45 - ..._094108_add_tag_id_to_attachment_table.php | 36 - ..._14_103656_update_yz_sys_msg_log_table.php | 38 - ...create_yz_official_website_member_data.php | 39 - ...8_add_goods_id_index_to_yz_store_goods.php | 40 - ...316_create_yz_wechat_qrcode_fans_table.php | 45 - ..._111057_add_column_to_yz_member_coupon.php | 40 - ...65342_create_yz_member_certified_table.php | 40 - ...ompany_number_type_to_yz_order_invoice.php | 40 - ..._create_ims_yz_page_share_record_table.php | 41 - ...1234_add_systemtype_to_yz_member_table.php | 36 - ...ogintime_devicetype_to_yz_member_table.php | 39 - ...add_wechat_native_to_yz_pay_type_table.php | 54 - ...reate_yz_order_refund_change_log_table.php | 43 - ...dd_setting_data_to_synchronized_binder.php | 37 - ...1_01_13_103331_create_yz_logistics_set.php | 52 - ...1_18_150616_add_timeline_to_attachment.php | 37 - ...theme_to_yz_official_website_theme_set.php | 42 - ...14_add_tag_id_to_core_attachment_table.php | 39 - ...d_and_status_to_yz_member_record_table.php | 40 - ...3_fix_data_to_order_income_count_table.php | 33 - ...47_update_yz_goods_coupon_table_230311.php | 36 - ...111113_create_yz_yun_sign_switch_table.php | 39 - ...2_update_yz_order_discount210415_table.php | 37 - ...04_19_172523_create_yz_rich_text_table.php | 40 - ...fix_data_to_yz_setting_agreement_table.php | 45 - ..._175622_add_member_id_to_yz_admin_logs.php | 48 - ...0935_add_balance_to_yz_deduction_table.php | 30 - ..._add_use_conditions_to_yz_coupon_table.php | 34 - ...0_add_use_num_to_yz_goods_coupon_table.php | 37 - ...172523_create_yz_member_position_table.php | 55 -- ...213_add_uniacid_column_to_yz_admin_log.php | 36 - ...igrate_settting_to_balance_pay_proving.php | 40 - ...ndex_to_yz_withdraw_income_apply_table.php | 44 - ...e_set_and_yz_official_website_multiple.php | 283 ------ ..._balance_deduct_to_yz_goods_sale_table.php | 34 - ...z_withdraw_merge_servicetax_rate_table.php | 49 - ...reate_yz_order_behalf_pay_record_table.php | 44 - ...assword_change_yz_system_setting_table.php | 49 - ...1_create_yz_member_cancel_record_table.php | 40 - ...3511_create_yz_member_cancel_set_table.php | 42 - ...11_093150_add_display_name_to_limitbuy.php | 34 - ..._08_11_104303_create_goods_advertising.php | 39 - ..._theme_of_yz_official_website_multiple.php | 139 --- ..._add_get_limit_type_to_yz_coupon_table.php | 39 - ...2523_create_yz_business_plat_log_table.php | 49 - ..._create_yz_business_manager_list_table.php | 48 - ..._172524_create_yz_business_staff_table.php | 64 -- ...ate_yz_business_department_staff_table.php | 52 - ...26_create_yz_business_department_table.php | 54 - ...ate_yz_work_wechat_platform_crop_table.php | 42 - ...627_add_close_reason_to_yz_order_table.php | 38 - ...le_field_to_yz_goods_advertising_table.php | 45 - ...26_create_yz_business_permission_table.php | 53 - ..._right_type_to_yz_business_staff_table.php | 34 - ...17_114924_create_yz_order_plugin_table.php | 41 - ...dd_disabled_to_yz_business_staff_table.php | 34 - ...5727_create_yz_coupon_increase_records.php | 39 - ..._172957_fix_record_to_yz_member_income.php | 32 - ...21_10_13_132957_alter_yz_pay_type_name.php | 31 - ...4_132124_alter_yz_pay_type_wechat_name.php | 31 - ...1_11_170839_truncate_failed_jobs_table.php | 29 - ...otal_limit_to_yz_goods_privilege_table.php | 35 - ...47_create_yz_postage_included_category.php | 41 - ...ate_yz_postage_included_category_goods.php | 40 - ...3_165245_create_yz_variety_member_cart.php | 40 - ...ward_balance_to_ims_yz_goods_sale_shop.php | 36 - ...29_234612_create_yz_withdraw_rich_text.php | 37 - ...1_12_07_165245_create_yz_order_package.php | 43 - ...135615_create_yz_goods_spec_info_table.php | 45 - ...update_yz_goods_category_table20211214.php | 40 - ...420_create_yz_order_merge_create_table.php | 37 - ..._update_refactor_yz_order_refund_table.php | 67 -- ...create_yz_order_refund_goods_log_table.php | 45 - ...eate_yz_order_refund_process_log_table.php | 43 - ...6_update_yz_member_level_table20211227.php | 46 - ...8_140844_create_yz_goods_setting_table.php | 39 - ...ate_yz_category_discount_table20211229.php | 34 - ..._integral_exchange_column_to_yz_coupon.php | 48 - ...53_create_yz_outside_app_setting_table.php | 44 - ..._161502_create_yz_comment_config_table.php | 44 - ...9_add_audit_column_to_yz_comment_table.php | 56 -- ...member_enter_to_yz_goods_setting_table.php | 36 - ...35_create_yz_outside_order_trade_table.php | 42 - ..._yz_outside_order_has_many_order_table.php | 39 - ...17_114543_add_lng_lat_to_order_address.php | 40 - ..._detail_show_to_yz_goods_setting_table.php | 36 - ..._112447_update_to_alias_yz_goods_table.php | 36 - ...022_01_28_103653_add_index_to_yz_table.php | 80 -- ...d_price_desc_to_yz_goods_setting_table.php | 38 - ...0151_create_yz_system_white_list_table.php | 38 - ...145840_add_data_yz_order_invoice_table.php | 72 -- ...create_yz_balance_recharge_check_table.php | 50 - ...151_create_yz_business_material_table .php | 44 - ...root_username_to_yz_website_info_table.php | 33 - ...63214_add_order_goods_id_to_yz_comment.php | 36 - ...lerk_type_to_yz_order_change_log_table.php | 34 - ..._balance_deduct_to_yz_goods_sale_table.php | 42 - ...164411_create_yz_sql_install_log_table.php | 36 - ...hat_micro_pay_to_yz_pay_type_table.php.php | 42 - ...ront_show_to_yz_search_filtering_table.php | 34 - ..._add_vip_order_goods_price_to_yz_order.php | 36 - ..._23_155215_add_level_set_to_yz_comment.php | 36 - ...433_add_field_to_yz_order_refund_table.php | 53 - ...3_423142_alter_mc_member_charset_table.php | 32 - ...reate_yz_order_freight_deduction_table.php | 52 - ...20_155411_add_field_to_yz_coupon_table.php | 34 - ...hat_trade_pay_to_yz_pay_type_table.php.php | 42 - ...reate_yz_order_manual_refund_log_table.php | 39 - ...45_create_yz_wechat_withdraw_log_table.php | 51 - ...22_06_01_163343_fix_order_goods_coupon.php | 41 - ...75306_add_name_to_yz_dispatch_type_set.php | 37 - ...14_add_filed_yz_protocol_table20220629.php | 34 - ...52002_transfer_member_set_data20220629.php | 28 - ...145210_add_is_hide_columns_to_yz_goods.php | 34 - ...07_091122_transfer_data_member_setting.php | 72 -- ..._change_data_to_yz_logistics_set_table.php | 35 - ...03_add_field_yz_withdraw_table20220711.php | 34 - ...4231_change_point_mode_in_yz_point_log.php | 36 - ...210_add_reject_time_to_yz_order_refund.php | 34 - ...00439_add_filed_yz_goods_table20220726.php | 50 - ...reate_yz_business_message_notice_table.php | 47 - ...dd_parent_point_to_yz_goods_sale_table.php | 39 - ...reate_yz_parent_point_reward_log_table.php | 44 - ...8_11_113800_create_ims_yz_plugins_meal.php | 39 - ...20_create_ims_yz_plugins_meal_platform.php | 37 - ...eate_yz_min_app_pay_manage_order_table.php | 48 - ...d_filed_yz_goods_setting_table20220826.php | 34 - ...d_filed_yz_goods_setting_table20230625.php | 37 - ..._create_yz_business_staff_ticket_table.php | 44 - ...te_yz_business_staff_ticket_code_table.php | 43 - ...1_161107_create_yz_order_tax_fee_table.php | 42 - ...33_create_yz_order_goods_tax_fee_table.php | 41 - ...72651_add_filed_yz_order_table20220831.php | 34 - .../2022_09_02_103106_allter_yz_balance.php | 32 - ...yz_member_level_update_column_goods_id.php | 38 - ..._15_110400_add_uid_to_yz_order_deliver.php | 36 - ...20_182511_create_yz_member_merge_table.php | 51 - ...pdate_unique_index_to_yz_member_unique.php | 54 - ...elete_unique_index_to_yz_member_unique.php | 39 - ...dd_column_is_order_detail_comment_show.php | 39 - ...1846_update_table_yz_member_child_time.php | 40 - ...26_091535_add_time_to_yz_goods_service.php | 52 - ...ds_amd_yz_order_refund_goods_log_table.php | 62 -- ...0_add_delivery_day_to_yz_order_address.php | 31 - ...45210_add_hide_goods_sales_to_yz_goods.php | 41 - ...0_110400_add_index_to_yz_member_income.php | 29 - ...ate_yz_goods_option_title_length_table.php | 34 - ..._add_pay_type_id_to_yz_pay_order_table.php | 34 - ...105233_create_yz_goods_trade_set_table.php | 49 - ...y_multiple_to_yz_goods_privilege_table.php | 34 - ...ountry_code_to_yz_member_address_table.php | 34 - ...ountry_code_to_mc_member_address_table.php | 34 - ...13_171435_add_created_type_to_yz_order.php | 34 - ..._buy_limit_to_yz_goods_privilege_table.php | 37 - ...161755_add_type_to_yz_member_bank_card.php | 33 - ...eate_yz_withdraw_income_deduction_love.php | 43 - ...41917_add_type_to_yz_order_goods_table.php | 35 - ...01_11_113955_create_yz_goods_trade_log.php | 39 - ...dd_original_stock_to_yz_goods_limitbuy.php | 35 - ...2636_add_area_info_to_yz_advertisement.php | 40 - ...create_yz_pay_callback_exception_table.php | 47 - ...time_limit_to_yz_goods_privilege_table.php | 44 - ..._09_144141_create_yz_goods_contact_tel.php | 38 - ...35_add_filed_to_member_address20230516.php | 41 - ...6_124600_add_idcard_addr_to_mc_members.php | 36 - ...table_yz_order_change_order_sn_collate.php | 34 - ...0110_change_columns_type_of_yz_balance.php | 37 - ...20_124600_add_weight_to_yz_order_goods.php | 34 - ...7_add_index_to_yz_goods_category_table.php | 45 - ...163307_add_is_shop_to_yz_comment_table.php | 37 - ...er_data_member_setting_to_lang_setting.php | 44 - ...7_26_144141_create_yz_goods_image_link.php | 41 - ..._order_sn_index_yz_member_income_table.php | 42 - ..._100226_add_idcard_image_to_mc_members.php | 40 - ...4_154808_create_yz_member_history_city.php | 41 - database/redis.php | 8 - database/seeds/ChangeModuleNameSeeder.php | 40 - database/seeds/DatabaseSeeder.php | 92 -- database/seeds/GoodsSeeder.php | 43 - database/seeds/OrderGoodsSeeder.php | 109 --- database/seeds/OrderSeeder.php | 115 --- database/seeds/PosterSeeder.php | 17 - database/seeds/PosterSupplementSeeder.php | 11 - database/seeds/SettingSeeder.php | 79 -- database/seeds/YzAddressSeeder.php | 42 - database/seeds/YzCategorySeeder.php | 48 - database/seeds/YzCommentSeeder.php | 117 --- database/seeds/YzDispatchSeeder.php | 51 - database/seeds/YzGoodsDiscountSeeder.php | 56 -- database/seeds/YzGoodsDispatchSeeder.php | 42 - database/seeds/YzGoodsPrivilegeSeeder.php | 47 - database/seeds/YzGoodsShareSeeder.php | 44 - database/seeds/YzMaterialCenterSeeder.php | 80 -- database/seeds/YzMenuUpgradeSeeder.php | 42 - database/seeds/YzNoticeSeeder.php | 46 - database/seeds/YzOptionsTableSeeder.php | 40 - database/seeds/YzPermissionSeeder.php | 18 - database/seeds/YzPluginUniacidSeeder.php | 91 -- database/seeds/YzStreetSeeder.php | 42 - database/seeds/YzSystemSettingTableSeeder.php | 40 - .../seeds/YzTemplateMessageTableSeeder.php | 392 -------- database/seeds/YzUniacidSeeder.php | 21 - database/seeds/YzUserRoleSeeder.php | 42 - database/seeds/YzpluginSeeder.php | 91 -- database/seeds/YzsaleSeeder.php | 46 - 650 files changed, 1 insertion(+), 31495 deletions(-) delete mode 100644 database/config.php delete mode 100644 database/migrations/2013_07_02_165645_create_yz_site_setting.php delete mode 100644 database/migrations/2015_04_20_151900_create_uploads_table_zgldh.php delete mode 100644 database/migrations/2015_11_18_132512_add_polymorphic_columns_to_uploads.php delete mode 100644 database/migrations/2015_12_21_111514_create_sms_table.php delete mode 100644 database/migrations/2017_03_06_200815_create_ims_yz_goods_table.php delete mode 100644 database/migrations/2017_03_06_200948_create_ims_yz_goods_param_table.php delete mode 100644 database/migrations/2017_03_06_200953_create_ims_yz_goods_spec_table.php delete mode 100644 database/migrations/2017_03_06_200959_create_ims_yz_goods_spec_item_table.php delete mode 100644 database/migrations/2017_03_07_101149_create_ims_yz_member_cart_table.php delete mode 100644 database/migrations/2017_03_07_101409_create_ims_yz_member_favorite_table.php delete mode 100644 database/migrations/2017_03_07_101409_create_ims_yz_member_group_table.php delete mode 100644 database/migrations/2017_03_07_101409_create_ims_yz_member_history_table.php delete mode 100644 database/migrations/2017_03_07_101927_create_ims_yz_member_level_table.php delete mode 100644 database/migrations/2017_03_07_104438_create_ims_yz_member_app_wechat_table.php delete mode 100644 database/migrations/2017_03_07_104505_create_ims_yz_member_wechat_table.php delete mode 100644 database/migrations/2017_03_07_104531_create_ims_yz_member_mini_app_table.php delete mode 100644 database/migrations/2017_03_07_104650_create_ims_yz_account_open_config_table.php delete mode 100644 database/migrations/2017_03_07_104720_create_ims_yz_member_qq_table.php delete mode 100644 database/migrations/2017_03_07_104746_create_ims_yz_qq_config_table.php delete mode 100644 database/migrations/2017_03_07_110235_create_ims_yz_member_table.php delete mode 100644 database/migrations/2017_03_07_111409_create_ims_yz_category_table.php delete mode 100644 database/migrations/2017_03_07_111521_create_ims_yz_brand_table.php delete mode 100644 database/migrations/2017_03_07_111553_create_ims_yz_comment_table.php delete mode 100644 database/migrations/2017_03_07_111632_create_ims_yz_goods_notices_table.php delete mode 100644 database/migrations/2017_03_07_114208_create_ims_yz_member_unique_table.php delete mode 100644 database/migrations/2017_03_07_121006_create_ims_yz_goods_share_table.php delete mode 100644 database/migrations/2017_03_07_121308_create_ims_yz_goods_discount_table.php delete mode 100644 database/migrations/2017_03_07_121324_create_ims_yz_goods_dispatch_table.php delete mode 100644 database/migrations/2017_03_07_121334_create_ims_yz_dispatch_table.php delete mode 100644 database/migrations/2017_03_07_125312_create_ims_yz_address_table.php delete mode 100644 database/migrations/2017_03_07_125453_create_ims_yz_street_table.php delete mode 100644 database/migrations/2017_03_07_165530_create_ims_yz_permission_table.php delete mode 100644 database/migrations/2017_03_07_170917_create_ims_yz_role_table.php delete mode 100644 database/migrations/2017_03_07_170931_create_ims_yz_user_role_table.php delete mode 100644 database/migrations/2017_03_07_180547_create_ims_yz_goods_category_table.php delete mode 100644 database/migrations/2017_03_07_224609_create_ims_yz_setting_table.php delete mode 100644 database/migrations/2017_03_08_133637_create_ims_yz_member_relation_table.php delete mode 100644 database/migrations/2017_03_08_142918_create_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_03_08_151154_create_ims_yz_goods_option_table.php delete mode 100644 database/migrations/2017_03_09_113554_create_ims_yz_sms_send_limit_table.php delete mode 100644 database/migrations/2017_03_09_135930_create_ims_yz_menu_table.php delete mode 100644 database/migrations/2017_03_09_152739_create_ims_yz_goods_privilege_table.php delete mode 100644 database/migrations/2017_03_10_214956_create_ims_yz_dispatch_type_table.php delete mode 100644 database/migrations/2017_03_10_215359_create_ims_yz_order_express_table.php delete mode 100644 database/migrations/2017_03_10_215425_create_ims_yz_order_remark_table.php delete mode 100644 database/migrations/2017_03_10_215716_create_ims_yz_order_table.php delete mode 100644 database/migrations/2017_03_10_215727_create_ims_yz_order_goods_table.php delete mode 100644 database/migrations/2017_03_10_215802_create_ims_yz_pay_type_table.php delete mode 100644 database/migrations/2017_03_11_005752_create_ims_yz_options_table.php delete mode 100644 database/migrations/2017_03_14_222459_create_ims_yz_order_operation_log_table.php delete mode 100644 database/migrations/2017_03_15_154258_create_ims_yz_order_mapping_table.php delete mode 100644 database/migrations/2017_03_17_172136_create_ims_yz_template_message_record_table.php delete mode 100644 database/migrations/2017_03_17_172136_create_ims_yz_template_message_table.php delete mode 100644 database/migrations/2017_03_28_152020_create_ims_yz_pay_access_log_table.php delete mode 100644 database/migrations/2017_03_28_152122_create_ims_yz_pay_log_table.php delete mode 100644 database/migrations/2017_03_28_152158_create_ims_yz_pay_refund_order_table.php delete mode 100644 database/migrations/2017_03_28_152215_create_ims_yz_pay_request_data_table.php delete mode 100644 database/migrations/2017_03_28_152224_create_ims_yz_pay_response_data_table.php delete mode 100644 database/migrations/2017_03_28_203149_create_ims_yz_pay_order_table.php delete mode 100644 database/migrations/2017_03_30_103633_create_ims_yz_member_income_table.php delete mode 100644 database/migrations/2017_03_30_171219_create_ims_yz_withdraw_table.php delete mode 100644 database/migrations/2017_04_06_145330_create_ims_yz_balance_recharge_table.php delete mode 100644 database/migrations/2017_04_06_145357_create_ims_yz_balance_transfer_table.php delete mode 100644 database/migrations/2017_04_07_163632_create_ims_yz_balance_table.php delete mode 100644 database/migrations/2017_05_08_180345_create_ims_yz_order_address_table.php delete mode 100644 database/migrations/2017_05_10_140639_add_ed_areaids_to_goods_sale_table.php delete mode 100644 database/migrations/2017_05_10_164426_create_ims_yz_coupon_log_table.php delete mode 100644 database/migrations/2017_05_10_164426_create_ims_yz_coupon_table.php delete mode 100644 database/migrations/2017_05_10_164426_create_ims_yz_member_coupon_table.php delete mode 100644 database/migrations/2017_05_10_170911_add_deleted_at_to_ims_yz_member_coupon.php delete mode 100644 database/migrations/2017_05_10_183520_add_level_limit_to_ims_yz_coupon.php delete mode 100644 database/migrations/2017_05_10_192431_create_ims_yz_order_pay_table.php delete mode 100644 database/migrations/2017_05_10_223507_add_comment_add_type.php delete mode 100644 database/migrations/2017_05_12_161241_create_ims_yz_pay_withdraw_order_table.php delete mode 100644 database/migrations/2017_05_12_165251_delete_max_point_deduct_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_05_12_170416_add_max_point_deduct_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_05_13_174412_delete_point_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_05_13_174655_add_point_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_05_15_101443_add_delede_at_to_ims_yz_member_table.php delete mode 100644 database/migrations/2017_05_15_181112_add_goods_market_price_order_goods_table.php delete mode 100644 database/migrations/2017_05_15_181253_add_order_pay_id_to_yz_order_table.php delete mode 100644 database/migrations/2017_05_16_125525_add_updated_at_to_ims_yz_member_unique_table.php delete mode 100644 database/migrations/2017_05_18_104602_add_note_to_yz_order_address_table.php delete mode 100644 database/migrations/2017_05_18_171828_create_ims_yz_return_express_table.php delete mode 100644 database/migrations/2017_05_18_173923_create_ims_yz_resend_express_table.php delete mode 100644 database/migrations/2017_05_24_105902_add_data_ims_yz_menu.php delete mode 100644 database/migrations/2017_06_01_153820_add_data_to_yz_pay_type.php delete mode 100644 database/migrations/2017_06_07_181046_change_enable_time_limit_to_goods_privilege_table.php delete mode 100644 database/migrations/2017_06_07_181552_add_enable_time_limit_to_goods_privilege_table.php delete mode 100644 database/migrations/2017_06_09_163600_add_menu_data_to_menu.php delete mode 100644 database/migrations/2017_06_13_160452_create_jobs_table.php delete mode 100644 database/migrations/2017_06_21_174522_create_ims_yz_exhelper_express_table.php delete mode 100644 database/migrations/2017_06_21_174528_create_ims_yz_exhelper_goods_table.php delete mode 100644 database/migrations/2017_06_21_174535_create_ims_yz_exhelper_order_table.php delete mode 100644 database/migrations/2017_06_21_174542_create_ims_yz_exhelper_print_table.php delete mode 100644 database/migrations/2017_06_21_174557_create_ims_yz_exhelper_sys_table.php delete mode 100644 database/migrations/2017_07_10_142350_add_order_sn_to_balance_transfer.php delete mode 100644 database/migrations/2017_07_12_103441_add_ed_full_to_goods_sale.php delete mode 100644 database/migrations/2017_07_14_120218_create_ims_yz_goods_coupon_table.php delete mode 100644 database/migrations/2017_07_14_120255_create_ims_yz_goods_coupon_queue_table.php delete mode 100644 database/migrations/2017_07_19_102348_add_servicetax_to_ims_yz_withdraw.php delete mode 100644 database/migrations/2017_07_19_174939_add_is_virtual_to_yz_member_table.php delete mode 100644 database/migrations/2017_07_20_114113_change_type_id_to_ims_yz_withdraw_table.php delete mode 100644 database/migrations/2017_07_21_115131_add_data_to_pay_type.php delete mode 100644 database/migrations/2017_07_25_150523_add_vip_price_to_order_goods.php delete mode 100644 database/migrations/2017_08_01_170424_update_engine_innodb_to_mc_members.php delete mode 100644 database/migrations/2017_08_02_095024_create_ims_yz_order_coupon_table.php delete mode 100644 database/migrations/2017_08_02_095151_create_ims_yz_order_deduction_table.php delete mode 100644 database/migrations/2017_08_02_095459_change_title_in_order_goods_table.php delete mode 100644 database/migrations/2017_08_09_092854_update_field_type_to_yz_options.php delete mode 100644 database/migrations/2017_08_10_100838_add_cloud_pay_to_pay_type_table.php delete mode 100644 database/migrations/2017_08_15_144630_change_display_order_to_yz_category.php delete mode 100644 database/migrations/2017_08_15_150915_add_cash_pay_to_pay_type_table.php delete mode 100644 database/migrations/2017_08_16_144547_create_ims_yz_order_discount_table.php delete mode 100644 database/migrations/2017_08_16_144558_create_ims_yz_order_goods_discount_table.php delete mode 100644 database/migrations/2017_08_17_141207_create_ims_yz_order_goods_expansion_table.php delete mode 100644 database/migrations/2017_08_23_172816_add_plugin_id_to_ims_yz_goods_table.php delete mode 100644 database/migrations/2017_08_25_160823_create_ims_yz_goods_div_from_table.php delete mode 100644 database/migrations/2017_09_04_133243_create_ims_yz_point_transfer_table.php delete mode 100644 database/migrations/2017_09_05_163810_add_enabled_to_yz_options.php delete mode 100644 database/migrations/2017_09_05_182552_add_app_to_pay_type_yangming_table.php delete mode 100644 database/migrations/2017_09_13_144542_add_custom_and_validity_to_yzmember_table.php delete mode 100644 database/migrations/2017_09_18_142739_update_field_content_to_yz_goods.php delete mode 100644 database/migrations/2017_09_18_162356_create_ims_yz_admin_operation_log_table.php delete mode 100644 database/migrations/2017_09_20_152105_add_member_form_to_ims_yz_member.php delete mode 100644 database/migrations/2017_09_22_165036_restructure_to_yz_goods_coupon_table.php delete mode 100644 database/migrations/2017_09_25_192336_add_field_to_yz_member.php delete mode 100644 database/migrations/2017_09_26_161953_add_comment_id_to_order_goods_table.php delete mode 100644 database/migrations/2017_09_27_104605_create_ims_yz_order_setting_table.php delete mode 100644 database/migrations/2017_09_27_151108_update_field_to_yz_member.php delete mode 100644 database/migrations/2017_09_29_160746_add_withdraw_mobile_to_yz_member.php delete mode 100644 database/migrations/2017_09_29_172128_create_ims_yz_withdraw_set_log_table.php delete mode 100644 database/migrations/2017_09_29_181923_change_dispatch_type.php delete mode 100644 database/migrations/2017_10_10_153038_create_ims_cron_job_table.php delete mode 100644 database/migrations/2017_10_10_153103_create_ims_cron_manager_table.php delete mode 100644 database/migrations/2017_10_14_114327_add_plugin_id_to_order.php delete mode 100644 database/migrations/2017_10_17_184012_add_payment_amount_to_order_goods_table.php delete mode 100644 database/migrations/2017_10_17_194008_create_ims_yz_order_goods_deduction_table.php delete mode 100644 database/migrations/2017_10_17_200205_create_ims_yz_deduction_table.php delete mode 100644 database/migrations/2017_10_17_200951_create_ims_yz_virtual_coin_table.php delete mode 100644 database/migrations/2017_10_19_134334_add_source_member_id_to_credit_log_table.php delete mode 100644 database/migrations/2017_10_23_145507_add_uid_to_admin_log.php delete mode 100644 database/migrations/2017_10_23_161225_create_ims_yz_member_bank_card_table.php delete mode 100644 database/migrations/2017_10_24_140051_fix_order_pay_id.php delete mode 100644 database/migrations/2017_10_24_221324_create_ims_yz_member_record_table.php delete mode 100644 database/migrations/2017_10_25_114950_add_field_to_yz_member_bank_card_table.php delete mode 100644 database/migrations/2017_10_26_100716_add_field_manual_type_to_yz_withdraw_table.php delete mode 100644 database/migrations/2017_10_26_103244_add_field_wechat_to_yz_member_table.php delete mode 100644 database/migrations/2017_11_01_135050_create_plugin_id_to_ims_yz_category_table.php delete mode 100644 database/migrations/2017_11_03_102200_remake_pay_type.php delete mode 100644 database/migrations/2017_11_09_150821_create_ims_yz_message_template_table.php delete mode 100644 database/migrations/2017_11_10_154004_add_virtual_sales_to_ims_yz_goods_table.php delete mode 100644 database/migrations/2017_11_13_162143_add_yunpay_to_yz_pay_type.php delete mode 100644 database/migrations/2017_11_15_135050_create_uuid_to_ims_yz_member_wechat_table.php delete mode 100644 database/migrations/2017_11_23_153451_create_ims_yz_point_love_set_table.php delete mode 100644 database/migrations/2017_11_30_153224_update_text_yz_pay_type.php delete mode 100644 database/migrations/2017_12_06_085438_create_ims_yz_balance_recharge_activity_table.php delete mode 100644 database/migrations/2017_12_14_174340_add_is_push_to_yz_goods_sale_table.php delete mode 100644 database/migrations/2017_12_15_145350_create_ims_yz_member_address_table.php delete mode 100644 database/migrations/2017_12_15_154004_add_street_to_ims_yz_order_address.php delete mode 100644 database/migrations/2018_01_04_105037_create_failed_jobs_table.php delete mode 100644 database/migrations/2018_01_05_103916_create_ims_yz_exhelper_senduser_table.php delete mode 100644 database/migrations/2018_01_15_151038_add_another_to_yz_pay_type_table.php delete mode 100644 database/migrations/2018_01_18_154451_add_field_award_balance_to_yz_goods_sale.php delete mode 100644 database/migrations/2018_02_26_111420_add_interests_rules_to_yz_member_level.php delete mode 100644 database/migrations/2018_03_13_115937_update_field_poundage_rate_to_yz_withdraw.php delete mode 100644 database/migrations/2018_03_26_165632_create_yz_search_filtering_table.php delete mode 100644 database/migrations/2018_03_28_154624_create_yz_goods_limitbuy_table.php delete mode 100644 database/migrations/2018_03_29_170942_create_yz_goods_filtering_table.php delete mode 100644 database/migrations/2018_04_09_152739_add_ims_yz_goods_privilege_table.php delete mode 100644 database/migrations/2018_04_10_141936_add_mark_to_yz_order.php delete mode 100644 database/migrations/2018_04_23_103334_change_become_moneycount_to_member_relation_table.php delete mode 100644 database/migrations/2018_04_25_100305_add_is_recommend_and_desc_to_yz_brand_table.php delete mode 100644 database/migrations/2018_04_27_102921_create_yz_adv_table.php delete mode 100644 database/migrations/2018_04_28_133828_create_ims_yz_goods_return_address_table.php delete mode 100644 database/migrations/2018_05_07_150312_add_is_complex_to_yz_coupon.php delete mode 100644 database/migrations/2018_05_10_093057_update_thumb_to_yz_goods_option.php delete mode 100644 database/migrations/2018_05_16_090439_add_filter_ids_to_yz_category.php delete mode 100644 database/migrations/2018_05_17_104914_add_top_show_to_options_table.php delete mode 100644 database/migrations/2018_05_19_172742_add_yz_openid_to_yz_member.php delete mode 100644 database/migrations/2018_05_22_100539_create_yz_template_message_default_table.php delete mode 100644 database/migrations/2018_05_22_104148_create_yz_goods_service_table.php delete mode 100644 database/migrations/2018_05_22_115532_add_is_default_and_notice_type_to_message_template.php delete mode 100644 database/migrations/2018_05_28_140403_delete_order_discount.php delete mode 100644 database/migrations/2018_06_08_103334_a_change_pay_time_to_order_pay_table.php delete mode 100644 database/migrations/2018_06_12_140403_create_status_flow_table.php delete mode 100644 database/migrations/2018_06_13_140403_add_data_to_status_flow_table.php delete mode 100644 database/migrations/2018_06_18_140403_add_remittance_audit_to_status_flow_table.php delete mode 100644 database/migrations/2018_06_26_140403_add_data_to_pay_type_table.php delete mode 100644 database/migrations/2018_06_27_140403_add_note_to_process_table.php delete mode 100644 database/migrations/2018_06_29_094047_update_telephone_to_goods_return_address.php delete mode 100644 database/migrations/2018_06_29_140403_add_is_pending_to_order_table.php delete mode 100644 database/migrations/2018_06_29_140403_create_order_pending.php delete mode 100644 database/migrations/2018_06_6_140403_create_order_pay_order.php delete mode 100644 database/migrations/2018_07_04_115431_add_owner_id_to_yz_member_history.php delete mode 100644 database/migrations/2018_07_23_115550_add_field_to_yz_member_relation.php delete mode 100644 database/migrations/2018_07_24_103357_repair_data_to_yz_withdraw.php delete mode 100644 database/migrations/2018_07_30_112806_create_ims_yz_member_relation_order_statistics_table.php delete mode 100644 database/migrations/2018_07_30_112806_create_ims_yz_member_relation_statistics_table.php delete mode 100644 database/migrations/2018_07_30_173303_create_yz_order_operation_tables.php delete mode 100644 database/migrations/2018_08_02_091223_create_ims_yz_order_count_table.php delete mode 100644 database/migrations/2018_08_31_173303_update_cache.php delete mode 100644 database/migrations/2018_09_05_173303_add_plugin_id_to_member_cart.php delete mode 100644 database/migrations/2018_09_09_090305_modify_group_field_yz_setting.php delete mode 100644 database/migrations/2018_09_10_144727_add_index_to_yz_setting_table.php delete mode 100644 database/migrations/2018_09_10_174544_add_field_uniacid_to_yz_process.php delete mode 100644 database/migrations/2018_09_12_091100_create_yz_goods_video_table.php delete mode 100644 database/migrations/2018_09_13_141314_create_yz_member_del_log_table.php delete mode 100644 database/migrations/2018_09_17_173303_clear_cache.php delete mode 100644 database/migrations/2018_09_19_161655_create_ims_yz_order_plugin_bonus_table.php delete mode 100644 database/migrations/2018_09_27_142937_update_member_del_member_id.php delete mode 100644 database/migrations/2018_10_06_150312_add_status_to_yz_order_plugin_bonus.php delete mode 100644 database/migrations/2018_10_12_163613_create_ims_yz_order_created_job_table.php delete mode 100644 database/migrations/2018_10_12_163613_create_ims_yz_order_paid_job_table.php delete mode 100644 database/migrations/2018_10_12_163613_create_ims_yz_order_received_job_table.php delete mode 100644 database/migrations/2018_10_15_104737_create_yz_advertisement_table.php delete mode 100644 database/migrations/2018_10_16_182135_add_field_to_yz_balance_recharge.php delete mode 100644 database/migrations/2018_10_18_110120_add_invite_code_to_yz_member.php delete mode 100644 database/migrations/2018_10_19_155026_update_balance_withdraw_success_notice.php delete mode 100644 database/migrations/2018_10_21_152934_create_ims_yz_member_parent.php delete mode 100644 database/migrations/2018_10_21_152950_create_ims_yz_member_children.php delete mode 100644 database/migrations/2018_10_23_134514_create_ims_yz_point_recharge_table.php delete mode 100644 database/migrations/2018_10_23_154225_add_selfmoney_to_yz_member_relation.php delete mode 100644 database/migrations/2018_10_23_155026_update_order_express.php delete mode 100644 database/migrations/2018_10_24_103537_create_ims_yz_phone_attribution.php delete mode 100644 database/migrations/2018_10_24_111818_create_yz_operation_log_table.php delete mode 100644 database/migrations/2018_10_31_114510_create_ims_yz_member_lower_count.php delete mode 100644 database/migrations/2018_10_31_114534_create_ims_yz_member_lower_order.php delete mode 100644 database/migrations/2018_10_31_134514_create_ims_yz_order_income_count_table.php delete mode 100644 database/migrations/2018_11_01_190843_create_ims_yz_order_statistics.php delete mode 100644 database/migrations/2018_11_04_154225_add_become_term_to_yz_member_relation.php delete mode 100644 database/migrations/2018_11_04_154225_change_become_goods_id_to_yz_member_relation.php delete mode 100644 database/migrations/2018_11_06_154225_add_index_to_order_goods_table.php delete mode 100644 database/migrations/2018_11_07_091011_insert_data_to_yz_pay_type.php delete mode 100644 database/migrations/2018_11_20_154225_add_events_to_yz_order_job.php delete mode 100644 database/migrations/2018_11_20_154225_add_fields_to_yz_order.php delete mode 100644 database/migrations/2018_11_20_154225_add_is_member_deleted_to_yz_member_coupon.php delete mode 100644 database/migrations/2018_12_06_154225_add_index_to_member_children_table.php delete mode 100644 database/migrations/2018_12_17_100225_add_no_refund_to_yz_goods_and_yz_order_table.php delete mode 100644 database/migrations/2018_12_18_142652_create_ims_yz_pay_type_group_table.php delete mode 100644 database/migrations/2018_12_18_150928_add_data_to_pay_type_group_table.php delete mode 100644 database/migrations/2018_12_18_154705_add_field_group_to_pay_type_table.php delete mode 100644 database/migrations/2018_12_18_160955_add_data_group_to_pay_type_table.php delete mode 100644 database/migrations/2018_12_20_171609_create_ims_yz_category_discount.php delete mode 100644 database/migrations/2018_12_22_154225_add_index_to_order_address_table.php delete mode 100644 database/migrations/2018_12_22_154225_add_index_to_order_table.php delete mode 100644 database/migrations/2018_12_23_171247_create_ims_yz_order_request_table.php delete mode 100644 database/migrations/2018_12_27_160955_add_upgrade_at_to_yz_member_table.php delete mode 100644 database/migrations/2018_12_29_171609_create_ims_yz_member_invitation_log_table.php delete mode 100644 database/migrations/2019_01_02_135101_add_min_point_deduct_to_goods_sale_table.php delete mode 100644 database/migrations/2019_01_04_173014_add_plugin_id_to_yz_coupon.php delete mode 100644 database/migrations/2019_01_07_170019_create_ims_yz_exhelper_panel_table.php delete mode 100644 database/migrations/2019_01_08_111342_create_ims_yz_invite_page.php delete mode 100644 database/migrations/2019_01_11_115255_add_ims_yz_invite_page.php delete mode 100644 database/migrations/2019_01_12_123854_create_yz_member_month_order.php delete mode 100644 database/migrations/2019_01_14_200916_create_ims_yz_member_goods_invite_log.php delete mode 100644 database/migrations/2019_01_15_142603_create_yz_member_month_rank.php delete mode 100644 database/migrations/2019_01_16_102509_add_need_address_to_yz_order_and_yz_goods_table.php delete mode 100644 database/migrations/2019_01_18_154225_add_separate_to_yz_member_income.php delete mode 100644 database/migrations/2019_01_18_170914_add_zipcode_to_order_address.php delete mode 100644 database/migrations/2019_01_21_111731_add_order_invoice.php delete mode 100644 database/migrations/2019_01_24_140719_add_auto_receipt_to_yz_order_table.php delete mode 100644 database/migrations/2019_01_29_144005_add_hotel_to_yz_dispatch_type_table.php delete mode 100644 database/migrations/2019_02_12_154823_add_ims_yz_goods_table.php delete mode 100644 database/migrations/2019_02_14_091724_add_poundage_type_to_yz_withdraw.php delete mode 100644 database/migrations/2019_02_15_105631_update_order_invoice.php delete mode 100644 database/migrations/2019_02_18_165023_create_dispatch_classify.php delete mode 100644 database/migrations/2019_02_19_175024_create_admin_permissions_table.php delete mode 100644 database/migrations/2019_02_19_175336_create_ims_yz_admin_users_table.php delete mode 100644 database/migrations/2019_02_19_175501_create_ims_yz_admin_roles_table.php delete mode 100644 database/migrations/2019_02_19_175607_create_ims_yz_admin_role_user_table.php delete mode 100644 database/migrations/2019_02_19_175733_create_ims_yz_admin_permission_role_table.php delete mode 100644 database/migrations/2019_02_27_173156_create_ims_yz_system_setting_table.php delete mode 100644 database/migrations/2019_02_28_105711_create_table_yz_uniacid_app.php delete mode 100644 database/migrations/2019_02_28_160419_create_ims_yz_wechat_rule_table.php delete mode 100644 database/migrations/2019_03_01_092840_create_ims_yz_wechat_rule_keyword_table.php delete mode 100644 database/migrations/2019_03_01_164323_update_invoice_call.php delete mode 100644 database/migrations/2019_03_12_161739_create_yz_app_user_table.php delete mode 100644 database/migrations/2019_03_13_155716_create_ims_yz_users_profile_table.php delete mode 100644 database/migrations/2019_03_18_094642_create_ims_yz_core_attachment.php delete mode 100644 database/migrations/2019_03_20_093527_update_share_to_yz_goods_coupon_table.php delete mode 100644 database/migrations/2019_03_20_101716_create_yz_shopping_share_coupon_log_table.php delete mode 100644 database/migrations/2019_03_20_101734_create_yz_shopping_share_coupon_table.php delete mode 100644 database/migrations/2019_03_28_134500_add_columns_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2019_03_28_172217_create_ims_yz_point_queue_table.php delete mode 100644 database/migrations/2019_03_28_172223_create_ims_yz_point_queue_log_table.php delete mode 100644 database/migrations/2019_04_04_160355_create_ims_yz_qrcode_table.php delete mode 100644 database/migrations/2019_04_04_161601_create_ims_yz_qrcode_stat_table.php delete mode 100644 database/migrations/2019_04_15_145300_change_default_ed_money_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2019_04_15_145300_update_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2019_04_17_115424_create_membership_infomattion_log.php delete mode 100644 database/migrations/2019_04_18_162734_add_share_page_deail_member_relation.php delete mode 100644 database/migrations/2019_04_23_135825_min_app_template_message.php delete mode 100644 database/migrations/2019_04_24_151910_add_form_id.php delete mode 100644 database/migrations/2019_04_25_143541_add_pay_count_to_yz_member_lower_order.php delete mode 100644 database/migrations/2019_04_26_173613_create_ims_yz_order_sent_job_table.php delete mode 100644 database/migrations/2019_05_05_143346_add_new_data_to_yz_membership_infomattion_log_table.php delete mode 100644 database/migrations/2019_05_06_174029_add_poundage_to_ims_yz_point_transfer.php delete mode 100644 database/migrations/2019_05_06_183349_create_teamOrder.php delete mode 100644 database/migrations/2019_05_14_100615_update_dispatc_first_piece_price.php delete mode 100644 database/migrations/2019_05_14_114853_update_goods_dispatch_dispatc_price.php delete mode 100644 database/migrations/2019_05_14_152940_add_message_template_news_link.php delete mode 100644 database/migrations/2019_05_17_153556_update_goods_dispatch_another_piece_price.php delete mode 100644 database/migrations/2019_05_22_155129_create_yz_balance_covert_Love_table.php delete mode 100644 database/migrations/2019_05_22_174303_add_service_fee.php delete mode 100644 database/migrations/2019_05_24_102640_create_yz_order_coupon_return.php delete mode 100644 database/migrations/2019_05_24_144547_create_ims_yz_order_fee_table.php delete mode 100644 database/migrations/2019_05_24_154225_add_fee_amount_to_yz_order.php delete mode 100644 database/migrations/2019_05_28_143246_add_ims_yz_setting_table.php delete mode 100644 database/migrations/2019_05_29_145300_change_default_discount_value_to_ims_yz_goods_discount_table.php delete mode 100644 database/migrations/2019_05_30_170608_create_yz_synchronized_binder_table.php delete mode 100644 database/migrations/2019_05_30_172348_add_token_to_yz_member_table.php delete mode 100644 database/migrations/2019_06_03_163831_create_yz_api_access_token_table.php delete mode 100644 database/migrations/2019_06_03_163831_create_yz_api_refresh_token_table.php delete mode 100644 database/migrations/2019_06_06_102619_update_yz_setting_column.php delete mode 100644 database/migrations/2019_06_13_102621_create_ims_yz_order_coin_exchange_table.php delete mode 100644 database/migrations/2019_06_13_102621_create_ims_yz_order_goods_coin_exchange_table.php delete mode 100644 database/migrations/2019_06_14_170905_add_yz_member_relation_reward_points.php delete mode 100644 database/migrations/2019_06_16_102620_add_all_point_deduct_to_ims_yz_goods_sale_table.php delete mode 100644 database/migrations/2019_06_16_102620_add_columns_to_ims_yz_order_goods_coin_exchange_table.php delete mode 100644 database/migrations/2019_06_16_102621_create_ims_yz_first_order_table.php delete mode 100644 database/migrations/2019_06_16_102622_add_goods_id_to_ims_yz_first_order_table.php delete mode 100644 database/migrations/2019_06_18_140102_add_column_in_app_user.php delete mode 100644 database/migrations/2019_06_18_161833_update_goods_id_column_in_member_level.php delete mode 100644 database/migrations/2019_06_21_165645_create_yz_distribution_order.php delete mode 100644 database/migrations/2019_06_28_165200_create_yz_goods_edit_disable_table.php delete mode 100644 database/migrations/2019_07_01_105904_create_website_info.php delete mode 100644 database/migrations/2019_07_02_094619_add_point_love_set.php delete mode 100644 database/migrations/2019_07_03_153836_update_yz_member_month_order.php delete mode 100644 database/migrations/2019_07_05_151900_remove_third_level.php delete mode 100644 database/migrations/2019_07_10_172411_add_token_to_yz_member_min_table.php delete mode 100644 database/migrations/2019_07_11_095300_change_time_fields_default_value_to_yz_order_refund_table.php delete mode 100644 database/migrations/2019_07_12_113226_insert_ims_yz_setting_supervisord_table.php delete mode 100644 database/migrations/2019_07_15_151900_remove_third_level_v2.php delete mode 100644 database/migrations/2019_07_18_140021_create_ims_yz_excel_recharge_records_table.php delete mode 100644 database/migrations/2019_07_18_140147_create_ims_yz_excel_recharge_detail_table.php delete mode 100644 database/migrations/2019_07_24_134900_add_index_openid_to_yz_member_table.php delete mode 100644 database/migrations/2019_07_25_161833_update_order_id_in_order_income_count.php delete mode 100644 database/migrations/2019_07_29_133105_add_yz_order_pay_pay_sn_index_table.php delete mode 100644 database/migrations/2019_07_29_134053_add_yz_balance_serial_number_index_table.php delete mode 100644 database/migrations/2019_07_29_143135_add_yz_goods_limitbuy_goods_id_index_table.php delete mode 100644 database/migrations/2019_07_29_163143_add_yz_member_income_to_member_id_index_table.php delete mode 100644 database/migrations/2019_07_29_170222_add__to_yz_member_min_app_to_open_id_index_table.php delete mode 100644 database/migrations/2019_08_05_161833_drop_index_in_order_income_count.php delete mode 100644 database/migrations/2019_08_09_172411_add_job_id_to_yz_member_poster_table.php delete mode 100644 database/migrations/2019_08_14_183505_add_yz_goods_table.php delete mode 100644 database/migrations/2019_08_21_170222_delete_disable_records_from_yz_options_table.php delete mode 100644 database/migrations/2019_09_09_144118_update_yz_goods_title.php delete mode 100644 database/migrations/2019_09_17_160454_uodate_yz_order_conpany_number_chang.php delete mode 100644 database/migrations/2019_09_18_114104_add_introduce_to_yz_video_lecturer_table.php delete mode 100644 database/migrations/2019_09_18_143039_change_mobile_yz_activity_apply_order_table.php delete mode 100644 database/migrations/2019_09_19_100159_add_thirdStatus_into_balance.php delete mode 100644 database/migrations/2019_09_19_100839_add_thirdStatus_into_point.php delete mode 100644 database/migrations/2019_09_24_134310_add_scan_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2019_09_25_101736_add_description_to_yz_member_level_table.php delete mode 100644 database/migrations/2019_10_12_105633_change_incometable_type_to_member_income.php delete mode 100644 database/migrations/2019_10_14_153447_add_column_to_ims_yz_comment_table.php delete mode 100644 database/migrations/2019_10_24_101736_add_team_performance_to_yz_member_level_table.php delete mode 100644 database/migrations/2019_10_30_173635_add_is_top_to_yz_uniacid_app_table.php delete mode 100644 database/migrations/2019_11_04_103336_create_ims_yz_member_douyin.php delete mode 100644 database/migrations/2019_11_08_171446_yz_member_mini_formid.php delete mode 100644 database/migrations/2019_11_11_140134_change_type_to_ims_yz_withdraw.php delete mode 100644 database/migrations/2019_11_11_160016_add__is_hide_yz_brand.php delete mode 100644 database/migrations/2019_11_18_114016_create_ims_yz_order_deliver_table.php delete mode 100644 database/migrations/2019_11_20_161833__update_relation_id_yz_member_relation_table.php delete mode 100644 database/migrations/2019_11_28_140147_create_ims_yz_alipay_order_settle_log_table.php delete mode 100644 database/migrations/2019_11_28_140147_create_ims_yz_alipay_pay_order_table.php delete mode 100644 database/migrations/2019_11_28_140147_create_ims_yz_wechat_pay_order_table.php delete mode 100644 database/migrations/2019_11_28_140147_create_ims_yz_wechat_profit_sharing_log_table.php delete mode 100644 database/migrations/2019_11_29_134310_add_jsapi_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2019_12_04_134310_add_member_card_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2019_12_17_103639_create_yz_order_goods_coupon_table.php delete mode 100644 database/migrations/2019_12_19_134310_add_aljsapi_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2019_12_31_162947_add_remind_to_admin_users.php delete mode 100644 database/migrations/2020_01_07_141330_add_yz_dispatch_plugin_id.php delete mode 100644 database/migrations/2020_03_11_111102_update_addresaddress_add_area.php delete mode 100644 database/migrations/2020_03_20_152511_add_hk_scan_pay_to_yz_pay_type_table.php delete mode 100644 database/migrations/2020_03_25_135029_add_longitude_latitude_to_member_address.php delete mode 100644 database/migrations/2020_03_25_141330_add_yz_dispatch_type_columns.php delete mode 100644 database/migrations/2020_03_25_141330_add_yz_goods_dispatch_dispatch_type_ids.php delete mode 100644 database/migrations/2020_03_26_111102_update_dispatch_type_data.php delete mode 100644 database/migrations/2020_03_27_151714_create_yz_job_heartbeat_table.php delete mode 100644 database/migrations/2020_03_27_151729_create_yz_cron_heartbeat_table.php delete mode 100644 database/migrations/2020_03_31_124038_add_room_to_yz_order_income_count_table.php delete mode 100644 database/migrations/2020_04_10_160422_add_is_old_to_yz_member_table.php delete mode 100644 database/migrations/2020_04_16_184722_create_shop_yz_member_alipay_table.php delete mode 100644 database/migrations/2020_04_20_140134_change_amount_to_yz_alipay_order_settle_log.php delete mode 100644 database/migrations/2020_04_28_072741_create_update_auth.php delete mode 100644 database/migrations/2020_04_30_091715_create_yz_wq_version_log_table.php delete mode 100644 database/migrations/2020_05_06_160422_add_ip_to_yz_order_request_table.php delete mode 100644 database/migrations/2020_05_16_150717_update_yz_message_template_data.php delete mode 100644 database/migrations/2020_06_04_135615_create_yz_member_merge_log_table.php delete mode 100644 database/migrations/2020_06_10_134515_create_yz_official_website_theme_set.php delete mode 100644 database/migrations/2020_06_10_134613_create_yz_official_website_multiple_list.php delete mode 100644 database/migrations/2020_06_18_092757_add_column_to_yz_slide.php delete mode 100644 database/migrations/2020_06_21_121256_add_small_type_to_mini_template.php delete mode 100644 database/migrations/2020_06_21_123208_add_data_to_mini_template.php delete mode 100644 database/migrations/2020_06_24_160813_add_hk_scan_alipay_to_yz_pay_type_table.php delete mode 100644 database/migrations/2020_06_30_110002_add_column_to_yz_category.php delete mode 100644 database/migrations/2020_06_30_171321_create_ims_yz_sys_msg_type_table.php delete mode 100644 database/migrations/2020_06_30_172119_create_ims_yz_sys_msg_log_table.php delete mode 100644 database/migrations/2020_07_02_101453_create_yz_change_mobile_log_table.php delete mode 100644 database/migrations/2020_07_02_111135_create_yz_member_change_log_table.php delete mode 100644 database/migrations/2020_07_03_102525_upadte_official_field_size.php delete mode 100644 database/migrations/2020_07_09_151747_create_ims_yz_bind_mobile_award_point_table.php delete mode 100644 database/migrations/2020_07_13_154533_create_yz_order_expediting_delivery.php delete mode 100644 database/migrations/2020_07_14_091737_add_column_to_yz_member_level.php delete mode 100644 database/migrations/2020_07_14_113210_add_relation_id_to_point_log.php delete mode 100644 database/migrations/2020_07_15_150717_create_yz_goods_small_code_url.php delete mode 100644 database/migrations/2020_07_20_145308_truncate_mini_app_template.php delete mode 100644 database/migrations/2020_07_27_145939_create_yz_order_address_update_log_table.php delete mode 100644 database/migrations/2020_07_27_164714_add_confirm_pay_to_yz_pay_type_table.php delete mode 100644 database/migrations/2020_08_03_150837_update_id_equal_4_yz_dispatch_type.php delete mode 100644 database/migrations/2020_08_12_172252_create_yz_protocol_table.php delete mode 100644 database/migrations/2020_08_19_151306_add_volume_to_goods.php delete mode 100644 database/migrations/2020_08_19_175555_add_volume_to_goods_option.php delete mode 100644 database/migrations/2020_08_21_101645_create_yz_order_service_fee_table.php delete mode 100644 database/migrations/2020_08_21_101654_update_service_fee_to_yz_order_table.php delete mode 100644 database/migrations/2020_08_21_105633_change_uid_to_member_coupon.php delete mode 100644 database/migrations/2020_08_24_165645_fix_yz_order_job.php delete mode 100644 database/migrations/2020_08_25_144751_add_wechat_h5_to_yz_pay_type_table.php delete mode 100644 database/migrations/2020_08_28_111121_create_ims_yz_coupon_use_log_table.php delete mode 100644 database/migrations/2020_09_03_135722_add_title_yz_protocol_table.php delete mode 100644 database/migrations/2020_09_14_145909_create_ims_yz_income_log_table.php delete mode 100644 database/migrations/2020_09_14_150326_create_ims_yz_withdraw_income_table.php delete mode 100644 database/migrations/2020_09_14_150332_create_ims_yz_withdraw_income_apply_table.php delete mode 100644 database/migrations/2020_09_15_173603_add_near_expiration_to_member_coupon.php delete mode 100644 database/migrations/2020_09_16_093106_create_ims_yz_coupon_slide_show_table.php delete mode 100644 database/migrations/2020_09_22_135224_create_ims_yz_admin_logs_table.php delete mode 100644 database/migrations/2020_09_24_093949_create_yz_order_invoice_table.php delete mode 100644 database/migrations/2020_10_09_134832_alter_yz_member_income_table.php delete mode 100644 database/migrations/2020_10_10_134832_alter_yz_member_income_unique_table.php delete mode 100644 database/migrations/2020_10_12_161840_create_yz_dispatch_type_set_table.php delete mode 100644 database/migrations/2020_10_29_172635_update_mini_temp_uniacid.php delete mode 100644 database/migrations/2020_11_06_115644_add_min_buy_limit_to_yz_goods_privilege_table.php delete mode 100644 database/migrations/2020_11_09_181024_add_wechat_min_pay_to_yz_pay_type_table.php delete mode 100644 database/migrations/2020_11_20_144955_add_is_all_send_goods_to_order.php delete mode 100644 database/migrations/2020_11_20_145627_add_order_express_id_to_order_goods.php delete mode 100644 database/migrations/2020_12_02_114534_create_ims_yz_member_lower_group_order.php delete mode 100644 database/migrations/2020_12_07_143600_second_time_change_become_goods_id_to_yz_member_relation.php delete mode 100644 database/migrations/2020_12_08_145301_change_is_all_send_goods_to_ims_yz_order.php delete mode 100644 database/migrations/2020_12_08_150722_update_yz_official_website_theme_set_add_identification.php delete mode 100644 database/migrations/2020_12_11_094000_create_ims_yz_core_attachment_tags_table.php delete mode 100644 database/migrations/2020_12_11_094108_add_tag_id_to_attachment_table.php delete mode 100644 database/migrations/2020_12_14_103656_update_yz_sys_msg_log_table.php delete mode 100644 database/migrations/2020_12_16_113503_create_yz_official_website_member_data.php delete mode 100644 database/migrations/2020_12_16_172058_add_goods_id_index_to_yz_store_goods.php delete mode 100644 database/migrations/2020_12_17_112316_create_yz_wechat_qrcode_fans_table.php delete mode 100644 database/migrations/2020_12_22_111057_add_column_to_yz_member_coupon.php delete mode 100644 database/migrations/2020_12_23_165342_create_yz_member_certified_table.php delete mode 100644 database/migrations/2020_12_25_142644_change_company_number_type_to_yz_order_invoice.php delete mode 100644 database/migrations/2020_12_29_164616_create_ims_yz_page_share_record_table.php delete mode 100644 database/migrations/2020_12_30_15501234_add_systemtype_to_yz_member_table.php delete mode 100644 database/migrations/2020_12_30_155044_add_lastlogintime_devicetype_to_yz_member_table.php delete mode 100644 database/migrations/2020_12_31_104039_add_wechat_native_to_yz_pay_type_table.php delete mode 100644 database/migrations/2021_01_04_092445_create_yz_order_refund_change_log_table.php delete mode 100644 database/migrations/2021_01_04_101422_add_setting_data_to_synchronized_binder.php delete mode 100644 database/migrations/2021_01_13_103331_create_yz_logistics_set.php delete mode 100644 database/migrations/2021_01_18_150616_add_timeline_to_attachment.php delete mode 100644 database/migrations/2021_01_21_103647_add_theme_to_yz_official_website_theme_set.php delete mode 100644 database/migrations/2021_01_29_114314_add_tag_id_to_core_attachment_table.php delete mode 100644 database/migrations/2021_02_26_105437_add_after_parent_id_and_status_to_yz_member_record_table.php delete mode 100644 database/migrations/2021_03_08_101623_fix_data_to_order_income_count_table.php delete mode 100644 database/migrations/2021_03_11_094647_update_yz_goods_coupon_table_230311.php delete mode 100644 database/migrations/2021_03_29_111113_create_yz_yun_sign_switch_table.php delete mode 100644 database/migrations/2021_04_15_094142_update_yz_order_discount210415_table.php delete mode 100644 database/migrations/2021_04_19_172523_create_yz_rich_text_table.php delete mode 100644 database/migrations/2021_04_19_193211_fix_data_to_yz_setting_agreement_table.php delete mode 100644 database/migrations/2021_04_21_175622_add_member_id_to_yz_admin_logs.php delete mode 100644 database/migrations/2021_04_22_150935_add_balance_to_yz_deduction_table.php delete mode 100644 database/migrations/2021_04_25_093711_add_use_conditions_to_yz_coupon_table.php delete mode 100644 database/migrations/2021_04_25_142210_add_use_num_to_yz_goods_coupon_table.php delete mode 100644 database/migrations/2021_05_10_172523_create_yz_member_position_table.php delete mode 100644 database/migrations/2021_05_19_114213_add_uniacid_column_to_yz_admin_log.php delete mode 100644 database/migrations/2021_05_28_092225_migrate_settting_to_balance_pay_proving.php delete mode 100644 database/migrations/2021_06_09_191531_add_income_id_index_to_yz_withdraw_income_apply_table.php delete mode 100644 database/migrations/2021_06_11_150722_add_theme_to_yz_official_website_theme_set_and_yz_official_website_multiple.php delete mode 100644 database/migrations/2021_06_15_105847_add_balance_deduct_to_yz_goods_sale_table.php delete mode 100644 database/migrations/2021_06_24_172523_create_yz_withdraw_merge_servicetax_rate_table.php delete mode 100644 database/migrations/2021_06_25_151126_create_yz_order_behalf_pay_record_table.php delete mode 100644 database/migrations/2021_06_28_101426_update_password_change_yz_system_setting_table.php delete mode 100644 database/migrations/2021_08_02_104911_create_yz_member_cancel_record_table.php delete mode 100644 database/migrations/2021_08_02_113511_create_yz_member_cancel_set_table.php delete mode 100644 database/migrations/2021_08_11_093150_add_display_name_to_limitbuy.php delete mode 100644 database/migrations/2021_08_11_104303_create_goods_advertising.php delete mode 100644 database/migrations/2021_08_16_150722_change_theme_of_yz_official_website_multiple.php delete mode 100644 database/migrations/2021_08_24_191531_add_get_limit_type_to_yz_coupon_table.php delete mode 100644 database/migrations/2021_08_31_172523_create_yz_business_plat_log_table.php delete mode 100644 database/migrations/2021_09_02_172523_create_yz_business_manager_list_table.php delete mode 100644 database/migrations/2021_09_02_172524_create_yz_business_staff_table.php delete mode 100644 database/migrations/2021_09_02_172525_create_yz_business_department_staff_table.php delete mode 100644 database/migrations/2021_09_02_172526_create_yz_business_department_table.php delete mode 100644 database/migrations/2021_09_03_160547_create_yz_work_wechat_platform_crop_table.php delete mode 100644 database/migrations/2021_09_03_161627_add_close_reason_to_yz_order_table.php delete mode 100644 database/migrations/2021_09_06_165433_add_multiple_field_to_yz_goods_advertising_table.php delete mode 100644 database/migrations/2021_09_13_172526_create_yz_business_permission_table.php delete mode 100644 database/migrations/2021_09_14_191531_add_right_type_to_yz_business_staff_table.php delete mode 100644 database/migrations/2021_09_17_114924_create_yz_order_plugin_table.php delete mode 100644 database/migrations/2021_09_17_191531_add_disabled_to_yz_business_staff_table.php delete mode 100644 database/migrations/2021_09_29_155727_create_yz_coupon_increase_records.php delete mode 100644 database/migrations/2021_10_11_172957_fix_record_to_yz_member_income.php delete mode 100644 database/migrations/2021_10_13_132957_alter_yz_pay_type_name.php delete mode 100644 database/migrations/2021_10_14_132124_alter_yz_pay_type_wechat_name.php delete mode 100644 database/migrations/2021_11_11_170839_truncate_failed_jobs_table.php delete mode 100644 database/migrations/2021_11_18_163928_add_day_buy_total_limit_to_yz_goods_privilege_table.php delete mode 100644 database/migrations/2021_11_22_090147_create_yz_postage_included_category.php delete mode 100644 database/migrations/2021_11_22_090155_create_yz_postage_included_category_goods.php delete mode 100644 database/migrations/2021_11_23_165245_create_yz_variety_member_cart.php delete mode 100644 database/migrations/2021_11_26_163721_add_pay_reward_balance_to_ims_yz_goods_sale_shop.php delete mode 100644 database/migrations/2021_11_29_234612_create_yz_withdraw_rich_text.php delete mode 100644 database/migrations/2021_12_07_165245_create_yz_order_package.php delete mode 100644 database/migrations/2021_12_10_135615_create_yz_goods_spec_info_table.php delete mode 100644 database/migrations/2021_12_14_134402_update_yz_goods_category_table20211214.php delete mode 100644 database/migrations/2021_12_22_134420_create_yz_order_merge_create_table.php delete mode 100644 database/migrations/2021_12_22_174033_update_refactor_yz_order_refund_table.php delete mode 100644 database/migrations/2021_12_22_174137_create_yz_order_refund_goods_log_table.php delete mode 100644 database/migrations/2021_12_22_174406_create_yz_order_refund_process_log_table.php delete mode 100644 database/migrations/2021_12_27_150716_update_yz_member_level_table20211227.php delete mode 100644 database/migrations/2021_12_28_140844_create_yz_goods_setting_table.php delete mode 100644 database/migrations/2021_12_29_161030_update_yz_category_discount_table20211229.php delete mode 100644 database/migrations/2022_01_05_160629_add_integral_exchange_column_to_yz_coupon.php delete mode 100644 database/migrations/2022_01_06_142853_create_yz_outside_app_setting_table.php delete mode 100644 database/migrations/2022_01_10_161502_create_yz_comment_config_table.php delete mode 100644 database/migrations/2022_01_11_093249_add_audit_column_to_yz_comment_table.php delete mode 100644 database/migrations/2022_01_13_113320_add_is_member_enter_to_yz_goods_setting_table.php delete mode 100644 database/migrations/2022_01_13_160335_create_yz_outside_order_trade_table.php delete mode 100644 database/migrations/2022_01_13_174736_create_yz_outside_order_has_many_order_table.php delete mode 100644 database/migrations/2022_01_17_114543_add_lng_lat_to_order_address.php delete mode 100644 database/migrations/2022_01_26_223425_add_detail_show_to_yz_goods_setting_table.php delete mode 100644 database/migrations/2022_01_27_112447_update_to_alias_yz_goods_table.php delete mode 100644 database/migrations/2022_01_28_103653_add_index_to_yz_table.php delete mode 100644 database/migrations/2022_02_09_101617_add_price_desc_to_yz_goods_setting_table.php delete mode 100644 database/migrations/2022_02_09_140151_create_yz_system_white_list_table.php delete mode 100644 database/migrations/2022_02_14_145840_add_data_yz_order_invoice_table.php delete mode 100644 database/migrations/2022_02_15_104008_create_yz_balance_recharge_check_table.php delete mode 100644 database/migrations/2022_02_15_140151_create_yz_business_material_table .php delete mode 100644 database/migrations/2022_02_22_173712_add_root_username_to_yz_website_info_table.php delete mode 100644 database/migrations/2022_03_02_163214_add_order_goods_id_to_yz_comment.php delete mode 100644 database/migrations/2022_03_09_134310_add_clerk_id_and_clerk_type_to_yz_order_change_log_table.php delete mode 100644 database/migrations/2022_03_09_141528_add_min_balance_deduct_to_yz_goods_sale_table.php delete mode 100644 database/migrations/2022_03_10_164411_create_yz_sql_install_log_table.php delete mode 100644 database/migrations/2022_03_17_134310_add_wechat_micro_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2022_03_18_164411_add_is_front_show_to_yz_search_filtering_table.php delete mode 100644 database/migrations/2022_03_18_223049_add_vip_order_goods_price_to_yz_order.php delete mode 100644 database/migrations/2022_03_23_155215_add_level_set_to_yz_comment.php delete mode 100644 database/migrations/2022_03_31_143433_add_field_to_yz_order_refund_table.php delete mode 100644 database/migrations/2022_04_13_423142_alter_mc_member_charset_table.php delete mode 100644 database/migrations/2022_04_14_185914_create_yz_order_freight_deduction_table.php delete mode 100644 database/migrations/2022_04_20_155411_add_field_to_yz_coupon_table.php delete mode 100644 database/migrations/2022_04_22_134310_add_wechat_trade_pay_to_yz_pay_type_table.php.php delete mode 100644 database/migrations/2022_05_20_155905_create_yz_order_manual_refund_log_table.php delete mode 100644 database/migrations/2022_05_30_091645_create_yz_wechat_withdraw_log_table.php delete mode 100644 database/migrations/2022_06_01_163343_fix_order_goods_coupon.php delete mode 100644 database/migrations/2022_06_16_175306_add_name_to_yz_dispatch_type_set.php delete mode 100644 database/migrations/2022_06_29_095714_add_filed_yz_protocol_table20220629.php delete mode 100644 database/migrations/2022_06_29_152002_transfer_member_set_data20220629.php delete mode 100644 database/migrations/2022_07_04_145210_add_is_hide_columns_to_yz_goods.php delete mode 100644 database/migrations/2022_07_07_091122_transfer_data_member_setting.php delete mode 100644 database/migrations/2022_07_07_172043_change_data_to_yz_logistics_set_table.php delete mode 100644 database/migrations/2022_07_11_181103_add_field_yz_withdraw_table20220711.php delete mode 100644 database/migrations/2022_07_13_184231_change_point_mode_in_yz_point_log.php delete mode 100644 database/migrations/2022_07_20_145210_add_reject_time_to_yz_order_refund.php delete mode 100644 database/migrations/2022_07_26_100439_add_filed_yz_goods_table20220726.php delete mode 100644 database/migrations/2022_08_04_094716_create_yz_business_message_notice_table.php delete mode 100644 database/migrations/2022_08_08_143433_add_parent_point_to_yz_goods_sale_table.php delete mode 100644 database/migrations/2022_08_09_164411_create_yz_parent_point_reward_log_table.php delete mode 100644 database/migrations/2022_08_11_113800_create_ims_yz_plugins_meal.php delete mode 100644 database/migrations/2022_08_11_114520_create_ims_yz_plugins_meal_platform.php delete mode 100644 database/migrations/2022_08_24_170255_create_yz_min_app_pay_manage_order_table.php delete mode 100644 database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20220826.php delete mode 100644 database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20230625.php delete mode 100644 database/migrations/2022_08_30_170255_create_yz_business_staff_ticket_table.php delete mode 100644 database/migrations/2022_08_30_170256_create_yz_business_staff_ticket_code_table.php delete mode 100644 database/migrations/2022_08_31_161107_create_yz_order_tax_fee_table.php delete mode 100644 database/migrations/2022_08_31_162233_create_yz_order_goods_tax_fee_table.php delete mode 100644 database/migrations/2022_08_31_172651_add_filed_yz_order_table20220831.php delete mode 100644 database/migrations/2022_09_02_103106_allter_yz_balance.php delete mode 100644 database/migrations/2022_09_05_111158_update_table_ims_yz_member_level_update_column_goods_id.php delete mode 100644 database/migrations/2022_09_15_110400_add_uid_to_yz_order_deliver.php delete mode 100644 database/migrations/2022_09_20_182511_create_yz_member_merge_table.php delete mode 100644 database/migrations/2022_10_09_110400_update_unique_index_to_yz_member_unique.php delete mode 100644 database/migrations/2022_10_10_110400_delete_unique_index_to_yz_member_unique.php delete mode 100644 database/migrations/2022_10_21_104154_alter_table_ims_yz_comment_config_add_column_is_order_detail_comment_show.php delete mode 100644 database/migrations/2022_10_21_171846_update_table_yz_member_child_time.php delete mode 100644 database/migrations/2022_10_26_091535_add_time_to_yz_goods_service.php delete mode 100644 database/migrations/2022_10_26_144305_update_yz_order_goods_amd_yz_order_refund_goods_log_table.php delete mode 100644 database/migrations/2022_10_31_110400_add_delivery_day_to_yz_order_address.php delete mode 100644 database/migrations/2022_11_09_145210_add_hide_goods_sales_to_yz_goods.php delete mode 100644 database/migrations/2022_11_10_110400_add_index_to_yz_member_income.php delete mode 100644 database/migrations/2022_11_14_095259_update_yz_goods_option_title_length_table.php delete mode 100644 database/migrations/2022_11_16_153857_add_pay_type_id_to_yz_pay_order_table.php delete mode 100644 database/migrations/2022_12_07_105233_create_yz_goods_trade_set_table.php delete mode 100644 database/migrations/2022_12_12_101940_add_buy_multiple_to_yz_goods_privilege_table.php delete mode 100644 database/migrations/2022_12_13_163211_add_country_code_to_yz_member_address_table.php delete mode 100644 database/migrations/2022_12_13_171422_add_country_code_to_mc_member_address_table.php delete mode 100644 database/migrations/2022_12_13_171435_add_created_type_to_yz_order.php delete mode 100644 database/migrations/2022_12_30_141917_add_option_buy_limit_to_yz_goods_privilege_table.php delete mode 100644 database/migrations/2022_12_30_161755_add_type_to_yz_member_bank_card.php delete mode 100644 database/migrations/2023_01_04_142752_create_yz_withdraw_income_deduction_love.php delete mode 100644 database/migrations/2023_01_06_141917_add_type_to_yz_order_goods_table.php delete mode 100644 database/migrations/2023_01_11_113955_create_yz_goods_trade_log.php delete mode 100644 database/migrations/2023_02_09_175717_add_original_stock_to_yz_goods_limitbuy.php delete mode 100644 database/migrations/2023_02_09_222636_add_area_info_to_yz_advertisement.php delete mode 100644 database/migrations/2023_02_20_141254_create_yz_pay_callback_exception_table.php delete mode 100644 database/migrations/2023_03_08_152635_add_time_limit_to_yz_goods_privilege_table.php delete mode 100644 database/migrations/2023_05_09_144141_create_yz_goods_contact_tel.php delete mode 100644 database/migrations/2023_05_16_140835_add_filed_to_member_address20230516.php delete mode 100644 database/migrations/2023_06_06_124600_add_idcard_addr_to_mc_members.php delete mode 100644 database/migrations/2023_06_09_170157_alter_table_yz_order_change_order_sn_collate.php delete mode 100644 database/migrations/2023_06_12_150110_change_columns_type_of_yz_balance.php delete mode 100644 database/migrations/2023_06_20_124600_add_weight_to_yz_order_goods.php delete mode 100644 database/migrations/2023_06_30_163307_add_index_to_yz_goods_category_table.php delete mode 100644 database/migrations/2023_07_12_163307_add_is_shop_to_yz_comment_table.php delete mode 100644 database/migrations/2023_07_17_135019_transfer_data_member_setting_to_lang_setting.php delete mode 100644 database/migrations/2023_07_26_144141_create_yz_goods_image_link.php delete mode 100644 database/migrations/2023_07_31_100809_add_order_sn_index_yz_member_income_table.php delete mode 100644 database/migrations/2023_08_24_100226_add_idcard_image_to_mc_members.php delete mode 100644 database/migrations/2023_08_24_154808_create_yz_member_history_city.php delete mode 100644 database/redis.php delete mode 100644 database/seeds/ChangeModuleNameSeeder.php delete mode 100644 database/seeds/DatabaseSeeder.php delete mode 100644 database/seeds/GoodsSeeder.php delete mode 100644 database/seeds/OrderGoodsSeeder.php delete mode 100644 database/seeds/OrderSeeder.php delete mode 100644 database/seeds/PosterSeeder.php delete mode 100644 database/seeds/PosterSupplementSeeder.php delete mode 100644 database/seeds/SettingSeeder.php delete mode 100644 database/seeds/YzAddressSeeder.php delete mode 100644 database/seeds/YzCategorySeeder.php delete mode 100644 database/seeds/YzCommentSeeder.php delete mode 100644 database/seeds/YzDispatchSeeder.php delete mode 100644 database/seeds/YzGoodsDiscountSeeder.php delete mode 100644 database/seeds/YzGoodsDispatchSeeder.php delete mode 100644 database/seeds/YzGoodsPrivilegeSeeder.php delete mode 100644 database/seeds/YzGoodsShareSeeder.php delete mode 100644 database/seeds/YzMaterialCenterSeeder.php delete mode 100644 database/seeds/YzMenuUpgradeSeeder.php delete mode 100644 database/seeds/YzNoticeSeeder.php delete mode 100644 database/seeds/YzOptionsTableSeeder.php delete mode 100644 database/seeds/YzPermissionSeeder.php delete mode 100644 database/seeds/YzPluginUniacidSeeder.php delete mode 100644 database/seeds/YzStreetSeeder.php delete mode 100644 database/seeds/YzSystemSettingTableSeeder.php delete mode 100644 database/seeds/YzTemplateMessageTableSeeder.php delete mode 100644 database/seeds/YzUniacidSeeder.php delete mode 100644 database/seeds/YzUserRoleSeeder.php delete mode 100644 database/seeds/YzpluginSeeder.php delete mode 100644 database/seeds/YzsaleSeeder.php diff --git a/.gitignore b/.gitignore index 82cbcddc..971a3339 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /.env .database/ /storage/logs/ +/database diff --git a/database/config.php b/database/config.php deleted file mode 100644 index e5f69b12..00000000 --- a/database/config.php +++ /dev/null @@ -1,17 +0,0 @@ -increments('id'); - $table->mediumText('value')->default('')->comment('设置内容'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_site_setting` comment '系统工具--系统工具设置表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_site_setting'); - } -} diff --git a/database/migrations/2015_04_20_151900_create_uploads_table_zgldh.php b/database/migrations/2015_04_20_151900_create_uploads_table_zgldh.php deleted file mode 100644 index 3341a9ef..00000000 --- a/database/migrations/2015_04_20_151900_create_uploads_table_zgldh.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->string('name')->nullable(); - $table->string('description')->nullable(); - $table->string('disk'); - $table->string('path'); - $table->integer('size'); - $table->integer('user_id')->nullable(); - $table->timestamps(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('uploads'); - } - -} diff --git a/database/migrations/2015_11_18_132512_add_polymorphic_columns_to_uploads.php b/database/migrations/2015_11_18_132512_add_polymorphic_columns_to_uploads.php deleted file mode 100644 index 0b4b4188..00000000 --- a/database/migrations/2015_11_18_132512_add_polymorphic_columns_to_uploads.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('uploadable_id')->nullable(); - $table->string('uploadable_type')->nullable(); - - $table->index([ - 'uploadable_id', - 'uploadable_type' - ],'uploadable_index'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (!Schema::hasTable('uploads')) { - Schema::table('uploads', function (Blueprint $table) { - $table->dropIndex('uploadable_index'); - }); - Schema::table('uploads', function (Blueprint $table) { - $table->dropColumn('uploadable_id'); - $table->dropColumn('uploadable_type'); - }); - } - } -} diff --git a/database/migrations/2015_12_21_111514_create_sms_table.php b/database/migrations/2015_12_21_111514_create_sms_table.php deleted file mode 100644 index 12df3859..00000000 --- a/database/migrations/2015_12_21_111514_create_sms_table.php +++ /dev/null @@ -1,68 +0,0 @@ -increments('id'); - - //to:用于存储手机号 - $table->string('to')->default(''); - - //temp_id:存储模板标记,用于存储任何第三方服务商提供的短信模板标记/id - $table->string('temp_id')->default(''); - - //data:模板短信的模板数据,建议json格式 - $table->string('data')->default(''); - - //content:内容 - $table->string('content')->default(''); - - //voice_code:语言验证码code - $table->string('voice_code')->default(''); - - //发送失败次数 - $table->mediumInteger('fail_times')->default(0); - - //最后一次发送失败时间 - $table->integer('last_fail_time')->unsigned()->default(0); - - //发送成功时的时间 - $table->integer('sent_time')->unsigned()->default(0); - - //代理器使用日志,记录每个代理器的发送状态,可用于排错 - $table->text('result_info')->nullable(); - - $table->timestamps(); - $table->softDeletes(); - $table->engine = 'InnoDB'; - - //说明 - //1:temp_id和data用于发送模板短信。 - //2:content用于直接发送短信内容,不使用模板。 - //3:voice_code用于存储语言验证码code。 - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('laravel_sms'); - } -} diff --git a/database/migrations/2017_03_06_200815_create_ims_yz_goods_table.php b/database/migrations/2017_03_06_200815_create_ims_yz_goods_table.php deleted file mode 100644 index 78d48b5a..00000000 --- a/database/migrations/2017_03_06_200815_create_ims_yz_goods_table.php +++ /dev/null @@ -1,65 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid')->comment('公众号'); - $table->integer('brand_id')->nullable()->comment('品牌ID'); - $table->boolean('type')->nullable()->default(1)->comment('类型'); - $table->boolean('status')->nullable()->default(1)->comment('状态'); - $table->integer('display_order')->nullable()->default(0)->comment('排序'); - $table->string('title', 100)->nullable()->default('')->comment('名称'); - $table->string('thumb')->nullable()->default('')->comment('主图'); - $table->text('thumb_url', 65535)->nullable()->comment('其他图片'); - $table->string('sku', 5)->nullable()->default('')->comment('单位'); - $table->string('description', 1000)->nullable()->default('')->comment('没有用'); - $table->text('content', 65535)->nullable()->comment('描述'); - $table->string('goods_sn', 50)->nullable()->default('')->comment('编号'); - $table->string('product_sn', 50)->nullable()->default('')->comment('条码'); - $table->decimal('market_price', 10)->nullable()->default(0.00)->comment('原价'); - $table->decimal('price', 10)->nullable()->default(0.00)->comment('现价'); - $table->decimal('cost_price', 10)->nullable()->default(0.00)->comment('成本价'); - $table->integer('stock')->nullable()->default(0)->comment('库存'); - $table->integer('reduce_stock_method')->nullable()->default(0)->comment('扣库存方式'); - $table->integer('show_sales')->nullable()->default(0)->comment('销量'); - $table->integer('real_sales')->nullable()->default(0)->comment('销量'); - $table->decimal('weight', 10)->nullable()->default(0.00)->comment('重量'); - $table->integer('has_option')->nullable()->default(0)->comment('是否启用规格'); - $table->boolean('is_new')->nullable()->default(0)->index('idx_isnew'); - $table->boolean('is_hot')->nullable()->default(0)->index('idx_ishot'); - $table->boolean('is_discount')->nullable()->default(0)->index('idx_isdiscount'); - $table->boolean('is_recommand')->nullable()->default(0)->index('idx_isrecommand'); - $table->boolean('is_comment')->nullable()->default(0)->index('idx_iscomment'); - $table->boolean('is_deleted')->default(0)->index('idx_deleted'); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('is_plugin')->unsigned()->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods'); - } - -} diff --git a/database/migrations/2017_03_06_200948_create_ims_yz_goods_param_table.php b/database/migrations/2017_03_06_200948_create_ims_yz_goods_param_table.php deleted file mode 100644 index 1aa015a4..00000000 --- a/database/migrations/2017_03_06_200948_create_ims_yz_goods_param_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goodsid'); - $table->string('title', 50)->nullable(); - $table->text('value', 65535)->nullable(); - $table->integer('displayorder')->nullable()->default(0)->index('idx_displayorder'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_param'); - } - -} diff --git a/database/migrations/2017_03_06_200953_create_ims_yz_goods_spec_table.php b/database/migrations/2017_03_06_200953_create_ims_yz_goods_spec_table.php deleted file mode 100644 index 60fac491..00000000 --- a/database/migrations/2017_03_06_200953_create_ims_yz_goods_spec_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goodsid'); - $table->string('title', 50)->nullable(); - $table->string('description', 1000)->nullable(); - $table->boolean('display_type')->nullable()->default(0); - $table->text('content', 65535)->nullable(); - $table->integer('display_order')->nullable()->default(0)->index('idx_displayorder'); - $table->string('propId')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_spec'); - } - -} diff --git a/database/migrations/2017_03_06_200959_create_ims_yz_goods_spec_item_table.php b/database/migrations/2017_03_06_200959_create_ims_yz_goods_spec_item_table.php deleted file mode 100644 index 35a9d2e7..00000000 --- a/database/migrations/2017_03_06_200959_create_ims_yz_goods_spec_item_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('specid')->nullable()->default(0)->index('idx_specid'); - $table->string('title')->nullable(); - $table->string('thumb')->nullable(); - $table->integer('show')->nullable()->default(0)->index('idx_show'); - $table->integer('display_order')->nullable()->default(0)->index('idx_displayorder'); - $table->string('valueId')->nullable(); - $table->integer('virtual')->nullable()->default(0); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_spec_item'); - } - -} diff --git a/database/migrations/2017_03_07_101149_create_ims_yz_member_cart_table.php b/database/migrations/2017_03_07_101149_create_ims_yz_member_cart_table.php deleted file mode 100644 index dda09b94..00000000 --- a/database/migrations/2017_03_07_101149_create_ims_yz_member_cart_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('member_id')->comment('会员id'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('goods_id')->comment('商品id'); - $table->integer('total')->comment('数量'); - $table->integer('price')->comment('价格'); - $table->integer('option_id')->comment('规格id'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_cart` comment '会员--购物车'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_cart'); - } - -} diff --git a/database/migrations/2017_03_07_101409_create_ims_yz_member_favorite_table.php b/database/migrations/2017_03_07_101409_create_ims_yz_member_favorite_table.php deleted file mode 100644 index 7612783c..00000000 --- a/database/migrations/2017_03_07_101409_create_ims_yz_member_favorite_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true); - $table->integer('member_id')->comment('会员ID'); - $table->integer('uniacid'); - $table->integer('goods_id')->comment('商品id'); - $table->integer('created_at'); - $table->boolean('deleted'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_favorite` comment '会员--会员喜欢的商品'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_favorite'); - } - -} diff --git a/database/migrations/2017_03_07_101409_create_ims_yz_member_group_table.php b/database/migrations/2017_03_07_101409_create_ims_yz_member_group_table.php deleted file mode 100644 index 7a9d5a5d..00000000 --- a/database/migrations/2017_03_07_101409_create_ims_yz_member_group_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->comment('公众号'); - $table->string('group_name', 45)->comment('分组名称'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_group` comment '会员--分组'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_group'); - } - -} diff --git a/database/migrations/2017_03_07_101409_create_ims_yz_member_history_table.php b/database/migrations/2017_03_07_101409_create_ims_yz_member_history_table.php deleted file mode 100644 index f0d136ce..00000000 --- a/database/migrations/2017_03_07_101409_create_ims_yz_member_history_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('member_id')->comment('会员id'); - $table->integer('uniacid'); - $table->integer('goods_id')->comment('商品id'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_history` comment '会员--浏览历史'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_history'); - } - -} diff --git a/database/migrations/2017_03_07_101927_create_ims_yz_member_level_table.php b/database/migrations/2017_03_07_101927_create_ims_yz_member_level_table.php deleted file mode 100644 index 4d7427c3..00000000 --- a/database/migrations/2017_03_07_101927_create_ims_yz_member_level_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('level')->comment('等级阶级'); - $table->string('level_name', 45)->comment('等级名称'); - $table->string('order_money', 45)->nullable(); - $table->string('order_count', 45)->nullable(); - $table->integer('goods_id')->nullable()->comment('商品id'); - $table->string('discount', 45)->nullable()->comment('折扣'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_level` comment '会员--等级'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_level'); - } - -} diff --git a/database/migrations/2017_03_07_104438_create_ims_yz_member_app_wechat_table.php b/database/migrations/2017_03_07_104438_create_ims_yz_member_app_wechat_table.php deleted file mode 100644 index 587fc488..00000000 --- a/database/migrations/2017_03_07_104438_create_ims_yz_member_app_wechat_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('app_wechat_id')->primary(); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('会员id'); - $table->string('openid', 50)->comment('openid'); - $table->string('nickname', 20)->comment('昵称'); - $table->string('avatar')->comment('头像'); - $table->boolean('gender')->default(0)->comment('性别0未知1男2女'); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_app_wechat comment '微信APP登录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_app_wechat'); - } - -} diff --git a/database/migrations/2017_03_07_104505_create_ims_yz_member_wechat_table.php b/database/migrations/2017_03_07_104505_create_ims_yz_member_wechat_table.php deleted file mode 100644 index 3d55cba5..00000000 --- a/database/migrations/2017_03_07_104505_create_ims_yz_member_wechat_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('wechat_id', true); - $table->integer('uniacid'); - $table->integer('member_id')->index('idx_member_id')->comment('会员id'); - $table->string('openid', 50)->comment('唯一标识'); - $table->string('nickname', 20)->comment('昵称'); - $table->boolean('gender')->default(0)->comment('性别0未知1男2女'); - $table->string('avatar')->comment('头像'); - $table->string('province', 4)->comment('省'); - $table->string('city', 25)->comment('市'); - $table->string('country', 10)->comment('国家'); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_wechat` comment '会员--app端辅助表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_wechat'); - } - -} diff --git a/database/migrations/2017_03_07_104531_create_ims_yz_member_mini_app_table.php b/database/migrations/2017_03_07_104531_create_ims_yz_member_mini_app_table.php deleted file mode 100644 index 90ffd2ae..00000000 --- a/database/migrations/2017_03_07_104531_create_ims_yz_member_mini_app_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('mini_app_id', true); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('会员id'); - $table->string('openid', 50)->comment('唯一标识'); - $table->string('nickname', 20)->comment('昵称'); - $table->string('avatar')->comment('头像'); - $table->boolean('gender')->comment('性别0未知1男2女'); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_mini_app` comment '会员--小程序辅助表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_mini_app'); - } - -} diff --git a/database/migrations/2017_03_07_104650_create_ims_yz_account_open_config_table.php b/database/migrations/2017_03_07_104650_create_ims_yz_account_open_config_table.php deleted file mode 100644 index bd269e4c..00000000 --- a/database/migrations/2017_03_07_104650_create_ims_yz_account_open_config_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('config_id')->primary(); - $table->integer('uniacid')->default(0); - $table->string('app_key', 64); - $table->string('app_secret', 64); - $table->boolean('type')->default(0); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_account_open_config'); - } - -} diff --git a/database/migrations/2017_03_07_104720_create_ims_yz_member_qq_table.php b/database/migrations/2017_03_07_104720_create_ims_yz_member_qq_table.php deleted file mode 100644 index e49452a1..00000000 --- a/database/migrations/2017_03_07_104720_create_ims_yz_member_qq_table.php +++ /dev/null @@ -1,50 +0,0 @@ -integer('qq_id', true); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->string('nickname'); - $table->string('figureurl'); - $table->string('figureurl_1'); - $table->string('figureurl_2'); - $table->string('figureurl_qq_1'); - $table->string('figureurl_qq_2'); - $table->boolean('gender')->default(0); - $table->string('is_yellow_year_vip', 45)->default('0'); - $table->integer('vip')->default(0); - $table->boolean('yellow_vip_level')->default(0); - $table->boolean('level')->default(0); - $table->boolean('is_yellow_vip')->default(0); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_qq'); - } - -} diff --git a/database/migrations/2017_03_07_104746_create_ims_yz_qq_config_table.php b/database/migrations/2017_03_07_104746_create_ims_yz_qq_config_table.php deleted file mode 100644 index 7740a83c..00000000 --- a/database/migrations/2017_03_07_104746_create_ims_yz_qq_config_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('config_id')->primary(); - $table->integer('uniacid')->default(0); - $table->string('app_key', 64); - $table->string('app_secret', 64); - $table->boolean('type')->default(0); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_qq_config'); - } - -} diff --git a/database/migrations/2017_03_07_110235_create_ims_yz_member_table.php b/database/migrations/2017_03_07_110235_create_ims_yz_member_table.php deleted file mode 100644 index b4f62740..00000000 --- a/database/migrations/2017_03_07_110235_create_ims_yz_member_table.php +++ /dev/null @@ -1,60 +0,0 @@ -integer('member_id')->index('idx_member_id')->comment('会员id'); - $table->integer('uniacid')->index('idx_uniacid')->comment('公众号'); - $table->integer('parent_id')->nullable()->comment('上级id'); - $table->integer('group_id')->default(0)->comment('会员组id'); - $table->integer('level_id')->default(0)->comment('会员等级id'); - $table->integer('inviter')->nullable()->default(0)->comment('是否有上线 0-没有锁定上线;1-有锁定上线'); - $table->boolean('is_black')->default(0)->comment('黑名单 0-普通会员;1-黑名单会员'); - $table->string('province_name', 15)->nullable()->comment('省名称'); - $table->string('city_name', 15)->nullable()->comment('市名称'); - $table->string('area_name', 15)->nullable()->comment('区名称'); - $table->integer('province')->nullable()->comment('省编号'); - $table->integer('city')->nullable()->comment('市编号'); - $table->integer('area')->nullable()->comment('区编号'); - $table->text('address', 65535)->nullable()->comment('详细地址'); - $table->string('referralsn', 255)->nullable(); - $table->boolean('is_agent')->nullable()->comment('是否有审核资格 0-没有;1-有'); - $table->string('alipayname')->nullable()->comment('支付宝账号名称'); - $table->string('alipay')->nullable()->comment('支付宝账号'); - $table->text('content', 65535)->nullable()->comment('备注'); - $table->integer('status')->nullable()->default(0)->comment('推广审核状态0-未申请;1-审核中;2-审核通过'); - $table->integer('child_time')->nullable()->default(0)->comment('成为下线时间'); - $table->integer('agent_time')->nullable()->default(0)->comment('获取发展下线资格时间'); - $table->integer('apply_time')->nullable()->default(0)->comment('资格申请时间'); - $table->string('relation', 255)->nullable()->comment('会员关系字段'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member` comment '会员--商城辅助表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member'); - } - -} diff --git a/database/migrations/2017_03_07_111409_create_ims_yz_category_table.php b/database/migrations/2017_03_07_111409_create_ims_yz_category_table.php deleted file mode 100644 index 1c4b4227..00000000 --- a/database/migrations/2017_03_07_111409_create_ims_yz_category_table.php +++ /dev/null @@ -1,49 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->string('name', 50)->nullable(); - $table->string('thumb')->nullable(); - $table->integer('parent_id')->nullable()->default(0)->index('idx_parentid'); - $table->string('description', 500)->nullable(); - $table->boolean('display_order')->nullable()->default(0)->index('idx_displayorder'); - $table->boolean('enabled')->nullable()->default(1)->index('idx_enabled'); - $table->boolean('is_home')->nullable()->default(0)->index('idx_ishome'); - $table->string('adv_img')->nullable()->default(''); - $table->string('adv_url', 500)->nullable()->default(''); - $table->boolean('level')->nullable()->default(0); - $table->string('advimg_pc')->default(''); - $table->string('advurl_pc', 500)->default(''); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_category'); - } - -} diff --git a/database/migrations/2017_03_07_111521_create_ims_yz_brand_table.php b/database/migrations/2017_03_07_111521_create_ims_yz_brand_table.php deleted file mode 100644 index 6f62a572..00000000 --- a/database/migrations/2017_03_07_111521_create_ims_yz_brand_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->string('name', 50)->nullable()->default('')->index('idx_name')->comment('品牌名称'); - $table->string('alias', 50)->nullable()->default('')->comment('品牌别名'); - $table->string('logo')->nullable()->default('')->comment('品牌logo'); - $table->string('desc')->nullable()->default('')->comment('品牌描述信息'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_brand` comment '品牌信息表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_brand'); - } - -} diff --git a/database/migrations/2017_03_07_111553_create_ims_yz_comment_table.php b/database/migrations/2017_03_07_111553_create_ims_yz_comment_table.php deleted file mode 100644 index 866b275f..00000000 --- a/database/migrations/2017_03_07_111553_create_ims_yz_comment_table.php +++ /dev/null @@ -1,50 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->default(0)->index('idx_uniacid'); - $table->integer('order_id')->nullable()->default(0)->index('idx_orderid'); - $table->integer('goods_id')->default(0)->index('idx_goodsid'); - $table->integer('uid')->nullable()->default(0)->index('idx_openid'); - $table->string('nick_name', 50)->nullable()->default(''); - $table->string('head_img_url')->nullable()->default(''); - $table->string('content')->default(''); - $table->boolean('level')->nullable()->default(0); - $table->text('images', 65535)->nullable(); - $table->boolean('deleted')->nullable()->default(0); - $table->integer('comment_id')->nullable()->default(0); - $table->integer('reply_id')->nullable()->default(0); - $table->string('reply_name', 50)->nullable(); - $table->integer('created_at')->default(0)->index('idx_createtime'); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_comment comment '商品评论表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_comment'); - } - -} diff --git a/database/migrations/2017_03_07_111632_create_ims_yz_goods_notices_table.php b/database/migrations/2017_03_07_111632_create_ims_yz_goods_notices_table.php deleted file mode 100644 index b9db82dc..00000000 --- a/database/migrations/2017_03_07_111632_create_ims_yz_goods_notices_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->integer('goods_id')->index('idx_good_id'); - $table->integer('uid')->nullable(); - $table->boolean('type')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_notices'); - } - -} diff --git a/database/migrations/2017_03_07_114208_create_ims_yz_member_unique_table.php b/database/migrations/2017_03_07_114208_create_ims_yz_member_unique_table.php deleted file mode 100644 index b8abe415..00000000 --- a/database/migrations/2017_03_07_114208_create_ims_yz_member_unique_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('unique_id', true); - $table->integer('uniacid')->nullable()->index('idx_uniacid')->comment('公众号'); - $table->string('unionid', 64)->unique('idx_unionid')->comment('开放平台唯一标识'); - $table->integer('member_id')->index('idx_member_id')->comment('会员id'); - $table->string('type')->nullable()->comment('登陆类型'); - $table->integer('created_at')->unsigned()->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_unique` comment '会员--开放平台同步辅助表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_unique'); - } - -} diff --git a/database/migrations/2017_03_07_121006_create_ims_yz_goods_share_table.php b/database/migrations/2017_03_07_121006_create_ims_yz_goods_share_table.php deleted file mode 100644 index fc9481ad..00000000 --- a/database/migrations/2017_03_07_121006_create_ims_yz_goods_share_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('goods_id')->index('idx_goodid'); - $table->boolean('need_follow')->nullable()->comment('强制关注,1为开启,0为关闭'); - $table->string('no_follow_message')->nullable()->default('')->comment('未关注提示信息'); - $table->string('follow_message')->nullable()->default('')->comment('关注引导信息'); - $table->string('share_title', 50)->nullable()->default('')->comment('分享标题'); - $table->string('share_thumb')->nullable()->default('')->comment('分享图片'); - $table->string('share_desc')->nullable()->default('')->comment('分享描述'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_share comment '商品分享关注设置表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_share'); - } - -} diff --git a/database/migrations/2017_03_07_121308_create_ims_yz_goods_discount_table.php b/database/migrations/2017_03_07_121308_create_ims_yz_goods_discount_table.php deleted file mode 100644 index d75a8e5c..00000000 --- a/database/migrations/2017_03_07_121308_create_ims_yz_goods_discount_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true); - $table->integer('goods_id')->index('idx_goodid')->comment('商品ID'); - $table->boolean('level_discount_type')->comment('折扣类型1为会员等级'); - $table->boolean('discount_method')->comment('折扣方式,1折扣,2固定金额,3成本比例'); - $table->integer('level_id')->comment('会员等级ID'); - $table->decimal('discount_value', 3)->comment('折扣数值'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_discount comment '商品折扣方式表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_discount'); - } - -} diff --git a/database/migrations/2017_03_07_121324_create_ims_yz_goods_dispatch_table.php b/database/migrations/2017_03_07_121324_create_ims_yz_goods_dispatch_table.php deleted file mode 100644 index 6817ce8b..00000000 --- a/database/migrations/2017_03_07_121324_create_ims_yz_goods_dispatch_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('goods_id')->index('idx_good_id'); - $table->boolean('dispatch_type')->default(1); - $table->integer('dispatch_price')->nullable()->default(0); - $table->integer('dispatch_id')->nullable(); - $table->boolean('is_cod')->default(1); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_dispatch'); - } - -} diff --git a/database/migrations/2017_03_07_121334_create_ims_yz_dispatch_table.php b/database/migrations/2017_03_07_121334_create_ims_yz_dispatch_table.php deleted file mode 100644 index 2e38fd42..00000000 --- a/database/migrations/2017_03_07_121334_create_ims_yz_dispatch_table.php +++ /dev/null @@ -1,55 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable(); - $table->string('dispatch_name', 50)->nullable()->comment('配送模板名称'); - $table->integer('display_order')->nullable()->comment('排序'); - $table->boolean('enabled')->nullable()->comment('是否显示(1:是;0:否)'); - $table->boolean('is_default')->nullable()->comment('是否默认模板(1:是;0:否)'); - $table->boolean('calculate_type')->nullable()->comment('计费方式'); - $table->text('areas', 65535)->nullable()->comment('配送区域'); - $table->integer('first_weight')->nullable()->comment('首重克数'); - $table->integer('another_weight')->nullable()->comment('续重克数'); - $table->decimal('first_weight_price', 14)->nullable()->comment('首重价格'); - $table->decimal('another_weight_price', 14)->nullable()->comment('续重价格'); - $table->integer('first_piece')->nullable()->comment('首件个数'); - $table->integer('another_piece')->nullable()->comment('续件个数'); - $table->integer('first_piece_price')->nullable()->comment('首件价格'); - $table->integer('another_piece_price')->nullable()->comment('续件价格'); - $table->text('weight_data')->nullable()->comment('按重量计费数据'); - $table->text('piece_data')->nullable()->comment('按数量计费数据'); - $table->boolean('is_plugin')->nullable()->default(0); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_dispatch comment '配送模板表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_dispatch'); - } - -} diff --git a/database/migrations/2017_03_07_125312_create_ims_yz_address_table.php b/database/migrations/2017_03_07_125312_create_ims_yz_address_table.php deleted file mode 100644 index 21ffc40e..00000000 --- a/database/migrations/2017_03_07_125312_create_ims_yz_address_table.php +++ /dev/null @@ -1,56 +0,0 @@ -integer('id', true); - $table->string('areaname')->nullable(); - $table->integer('parentid')->nullable(); - $table->integer('level')->nullable(); - }); - } - - if (Schema::hasTable('yz_address')) { - - $address_file = base_path() .DIRECTORY_SEPARATOR.'static'.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'address.json'; - \Log::debug('--地址文件路径--'.$address_file); - try { - DB::beginTransaction(); - \app\common\models\Address::truncate(); - $address_list = array_chunk(json_decode(file_get_contents($address_file), true), 2000); - foreach ($address_list as $address) { - \app\common\models\Address::insert($address); - } - - (new \app\common\services\address\GenerateAddressJs())->address(); - } catch (\Exception $e) { - \Log::debug('--地址生成错误--', $e->getMessage()); - } - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_address'); - } - -} diff --git a/database/migrations/2017_03_07_125453_create_ims_yz_street_table.php b/database/migrations/2017_03_07_125453_create_ims_yz_street_table.php deleted file mode 100644 index 378afab7..00000000 --- a/database/migrations/2017_03_07_125453_create_ims_yz_street_table.php +++ /dev/null @@ -1,55 +0,0 @@ -integer('id', true); - $table->string('areaname')->nullable(); - $table->integer('parentid')->nullable(); - $table->integer('level')->nullable(); - }); - } - - - if (Schema::hasTable('yz_street')) { - $street_file = base_path() . DIRECTORY_SEPARATOR . 'static'.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'street.json'; - \Log::debug('--街道地址文件路径--'.$street_file); - try { - DB::beginTransaction(); - \app\common\models\Street::truncate(); - $street_list = array_chunk(json_decode(file_get_contents($street_file), true), 2000); - foreach ($street_list as $street) { - \app\common\models\Street::insert($street); - } - } catch (\Exception $e) { - \Log::debug('--街道地址生成错误--', $e->getMessage()); - } - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_street'); - } - -} diff --git a/database/migrations/2017_03_07_165530_create_ims_yz_permission_table.php b/database/migrations/2017_03_07_165530_create_ims_yz_permission_table.php deleted file mode 100644 index c9567ae9..00000000 --- a/database/migrations/2017_03_07_165530_create_ims_yz_permission_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->boolean('type'); - $table->integer('item_id')->comment('操作员id'); - $table->string('permission')->comment('可操作权限'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_permission comment '商城--操作员权限表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_permission'); - } - -} diff --git a/database/migrations/2017_03_07_170917_create_ims_yz_role_table.php b/database/migrations/2017_03_07_170917_create_ims_yz_role_table.php deleted file mode 100644 index 95d1aacc..00000000 --- a/database/migrations/2017_03_07_170917_create_ims_yz_role_table.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id')->unsigned()->primary(); - $table->integer('uniacid'); - $table->string('name', 45)->comment('角色名称'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - $table->boolean('status')->default(0)->comment('1关闭,2开启'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_role comment '商城--角色表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_role'); - } - -} diff --git a/database/migrations/2017_03_07_170931_create_ims_yz_user_role_table.php b/database/migrations/2017_03_07_170931_create_ims_yz_user_role_table.php deleted file mode 100644 index 94779bdd..00000000 --- a/database/migrations/2017_03_07_170931_create_ims_yz_user_role_table.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('user_id')->comment('操作员id'); - $table->integer('role_id')->comment('角色id'); - $table->primary(['user_id', 'role_id']); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_user_role comment '商城--角色与操作员中间表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_user_role'); - } - -} diff --git a/database/migrations/2017_03_07_180547_create_ims_yz_goods_category_table.php b/database/migrations/2017_03_07_180547_create_ims_yz_goods_category_table.php deleted file mode 100644 index 132553b4..00000000 --- a/database/migrations/2017_03_07_180547_create_ims_yz_goods_category_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('goods_id')->nullable(); - $table->integer('category_id')->nullable()->comment('分类ID'); - $table->string('category_ids')->nullable()->comment('层级分类ID'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_goods_category` comment'商品--分类关联'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_category'); - } - -} diff --git a/database/migrations/2017_03_07_224609_create_ims_yz_setting_table.php b/database/migrations/2017_03_07_224609_create_ims_yz_setting_table.php deleted file mode 100644 index 9d08d819..00000000 --- a/database/migrations/2017_03_07_224609_create_ims_yz_setting_table.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->string('group')->default('shop'); - $table->string('key'); - $table->string('type'); - $table->text('value', 65535); - $table->unique(['group', 'key'], 'un_group_key'); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_setting'); - } - -} diff --git a/database/migrations/2017_03_08_133637_create_ims_yz_member_relation_table.php b/database/migrations/2017_03_08_133637_create_ims_yz_member_relation_table.php deleted file mode 100644 index 1d8e7b12..00000000 --- a/database/migrations/2017_03_08_133637_create_ims_yz_member_relation_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->comment('公众号'); - $table->boolean('status')->default(0)->comment('是否启用关系链 0-关闭;1-开启'); - $table->boolean('become')->default(0)->comment('成为分销商条件 0-无条件;1-申请;2-消费x次;3-消费x元;4-购买商品'); - $table->boolean('become_order')->default(0)->comment('消费条件统计的方式 0-付款后;1-完成后'); - $table->boolean('become_child')->default(0)->comment('成为下线条件 0-分享链接;1-首次下单;2-首次付款'); - $table->integer('become_ordercount')->nullable()->default(0)->comment(' 消费x次'); - $table->decimal('become_moneycount', 14,2)->nullable()->default(0.00)->comment('消费x元'); - $table->integer('become_goods_id')->nullable()->default(0)->comment('购买的商品'); - $table->boolean('become_info')->default(1)->comment('完善信息 0-不需要;1-需要'); - $table->boolean('become_check')->default(1)->comment('成为分销商是否需要审核 0-不需要;1-需要'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_relation` comment '会员--关系设置表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_relation'); - } - -} diff --git a/database/migrations/2017_03_08_142918_create_ims_yz_goods_sale_table.php b/database/migrations/2017_03_08_142918_create_ims_yz_goods_sale_table.php deleted file mode 100644 index 56436b4a..00000000 --- a/database/migrations/2017_03_08_142918_create_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('goods_id')->index('idx_good_id'); - $table->string('max_point_deduct', 255)->nullable(); - $table->integer('max_balance_deduct')->nullable()->default(0); - $table->integer('is_sendfree')->nullable()->default(0); - $table->integer('ed_num')->nullable()->default(0); - $table->integer('ed_money')->nullable(); - $table->text('ed_areas', 65535)->nullable(); - $table->string('point', 255)->nullable(); - $table->integer('bonus')->nullable()->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_sale'); - } - -} diff --git a/database/migrations/2017_03_08_151154_create_ims_yz_goods_option_table.php b/database/migrations/2017_03_08_151154_create_ims_yz_goods_option_table.php deleted file mode 100644 index 1ff6a8b3..00000000 --- a/database/migrations/2017_03_08_151154_create_ims_yz_goods_option_table.php +++ /dev/null @@ -1,51 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goodsid'); - $table->string('title', 50)->nullable(); - $table->string('thumb', 60)->nullable(); - $table->integer('product_price')->nullable()->default(0); - $table->integer('market_price')->nullable()->default(0); - $table->integer('cost_price')->nullable()->default(0); - $table->integer('stock')->nullable()->default(0); - $table->decimal('weight', 10)->nullable()->default(0.00); - $table->integer('display_order')->nullable()->default(0)->index('idx_displayorder'); - $table->text('specs', 65535)->nullable(); - $table->string('skuId')->nullable()->default(''); - $table->string('goods_sn')->nullable()->default(''); - $table->string('product_sn')->nullable()->default(''); - $table->integer('virtual')->nullable()->default(0); - $table->string('red_price', 50)->nullable()->default(''); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_option'); - } - -} diff --git a/database/migrations/2017_03_09_113554_create_ims_yz_sms_send_limit_table.php b/database/migrations/2017_03_09_113554_create_ims_yz_sms_send_limit_table.php deleted file mode 100644 index 5cb8e9c8..00000000 --- a/database/migrations/2017_03_09_113554_create_ims_yz_sms_send_limit_table.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('sms_id', true); - $table->integer('uniacid'); - $table->string('mobile', 11)->comment('短信接受电话'); - $table->boolean('total')->comment('短信条数'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix() - ."yz_sms_send_limit` comment '短信--短信发送限制表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_sms_send_limit'); - } - -} diff --git a/database/migrations/2017_03_09_135930_create_ims_yz_menu_table.php b/database/migrations/2017_03_09_135930_create_ims_yz_menu_table.php deleted file mode 100644 index 3a026aeb..00000000 --- a/database/migrations/2017_03_09_135930_create_ims_yz_menu_table.php +++ /dev/null @@ -1,47 +0,0 @@ -integer('id', true); - $table->string('name', 45)->comment('菜单名字'); - $table->string('item', 45)->comment('菜单标识'); - $table->string('url')->default('')->comment('菜单url'); - $table->string('url_params')->default('')->comment('菜单url参数'); - $table->boolean('permit')->default(0)->comment('权限控制'); - $table->boolean('menu')->default(0)->comment('菜单显示'); - $table->string('icon', 45)->default('')->comment('菜单图标'); - $table->integer('parent_id')->default(0)->comment('父级菜单ID'); - $table->integer('sort')->default(0)->comment('菜单排序'); - $table->boolean('status')->default(0)->comment('菜单状态1开启,0未开启'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_menu comment '菜单表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_menu'); - } - -} diff --git a/database/migrations/2017_03_09_152739_create_ims_yz_goods_privilege_table.php b/database/migrations/2017_03_09_152739_create_ims_yz_goods_privilege_table.php deleted file mode 100644 index bd3e8e9b..00000000 --- a/database/migrations/2017_03_09_152739_create_ims_yz_goods_privilege_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('id', true); - $table->integer('goods_id')->index('idx_goodid'); - $table->text('show_levels', 65535)->nullable(); - $table->text('show_groups', 65535)->nullable(); - $table->text('buy_levels', 65535)->nullable(); - $table->text('buy_groups', 65535)->nullable(); - $table->integer('once_buy_limit')->nullable()->default(0); - $table->integer('total_buy_limit')->nullable()->default(0); - $table->integer('time_begin_limit')->nullable(); - $table->integer('time_end_limit')->nullable(); - $table->boolean('enable_time_limit'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_privilege'); - } - -} diff --git a/database/migrations/2017_03_10_214956_create_ims_yz_dispatch_type_table.php b/database/migrations/2017_03_10_214956_create_ims_yz_dispatch_type_table.php deleted file mode 100644 index f14d442f..00000000 --- a/database/migrations/2017_03_10_214956_create_ims_yz_dispatch_type_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->string('name', 50)->default(''); - $table->integer('plugin'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_dispatch_type comment '配送类型表'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_dispatch_type'); - } - -} diff --git a/database/migrations/2017_03_10_215359_create_ims_yz_order_express_table.php b/database/migrations/2017_03_10_215359_create_ims_yz_order_express_table.php deleted file mode 100644 index 927c3d54..00000000 --- a/database/migrations/2017_03_10_215359_create_ims_yz_order_express_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('order_id')->default(0)->index('idx_order_id'); - $table->string('express_company_name', 50)->default(''); - $table->string('express_sn', 50)->default(''); - $table->string('express_code', 20)->default(''); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->default(0); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_express` comment'订单--快递记录'");//表注释 - - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_express'); - } - -} diff --git a/database/migrations/2017_03_10_215425_create_ims_yz_order_remark_table.php b/database/migrations/2017_03_10_215425_create_ims_yz_order_remark_table.php deleted file mode 100644 index 5e0f539d..00000000 --- a/database/migrations/2017_03_10_215425_create_ims_yz_order_remark_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('order_id')->index('idx_order_id'); - $table->char('remark'); - $table->integer('updated_at')->default(0); - $table->integer('created_at')->default(0); - $table->integer('deleted_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_remark` comment'订单--商家注释'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_remark'); - } - -} diff --git a/database/migrations/2017_03_10_215716_create_ims_yz_order_table.php b/database/migrations/2017_03_10_215716_create_ims_yz_order_table.php deleted file mode 100644 index aaf94fec..00000000 --- a/database/migrations/2017_03_10_215716_create_ims_yz_order_table.php +++ /dev/null @@ -1,55 +0,0 @@ -increments('id'); - $table->integer('uniacid')->unsigned()->default(0); - $table->integer('uid')->default(0); - $table->string('order_sn', 23)->default(''); - $table->integer('price')->default(0); - $table->integer('goods_price')->default(0); - $table->boolean('status')->default(0); - $table->integer('create_time')->default(0); - $table->boolean('is_deleted')->default(0); - $table->boolean('is_member_deleted')->default(0); - $table->text('change_price_detail', 65535)->nullable(); - $table->integer('finish_time')->default(0); - $table->integer('pay_time')->default(0); - $table->integer('send_time')->default(0); - $table->integer('cancel_time')->default(0); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->default(0); - $table->integer('cancel_pay_time')->default(0); - $table->integer('cancel_send_time')->default(0); - $table->integer('dispatch_type_id')->default(0); - $table->integer('pay_type_id')->default(0); - $table->integer('is_plugin')->unsigned()->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order'); - } - -} diff --git a/database/migrations/2017_03_10_215727_create_ims_yz_order_goods_table.php b/database/migrations/2017_03_10_215727_create_ims_yz_order_goods_table.php deleted file mode 100644 index 1ab01bd0..00000000 --- a/database/migrations/2017_03_10_215727_create_ims_yz_order_goods_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('order_id')->default(0)->comment('订单ID'); - $table->integer('goods_id')->default(0)->comment('商品id'); - $table->integer('total')->default(1)->comment('购买数量'); - $table->integer('create_at')->default(0); - $table->integer('price')->default(0)->comment('订单金额计算基数'); - $table->string('goods_sn', 50)->default('')->comment('商品码'); - $table->string('thumb', 50)->comment('商品图片'); - $table->string('title', 50)->comment('商品名称'); - $table->integer('goods_price')->default(0)->comment('商品现价'); - $table->integer('goods_option_id')->comment('规格ID'); - $table->string('goods_option_title',255)->default('')->comment('规格名称'); - $table->integer('product_sn')->comment('商品条码'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_goods` comment'订单--商品记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_goods'); - } - -} diff --git a/database/migrations/2017_03_10_215802_create_ims_yz_pay_type_table.php b/database/migrations/2017_03_10_215802_create_ims_yz_pay_type_table.php deleted file mode 100644 index 4aa88eac..00000000 --- a/database/migrations/2017_03_10_215802_create_ims_yz_pay_type_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id')->comment('支付类型ID'); - $table->string('name', 50)->default('')->comment('支付类型名称'); - $table->integer('plugin_id'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_pay_type` comment'系统--支付类型'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_type'); - } - -} diff --git a/database/migrations/2017_03_11_005752_create_ims_yz_options_table.php b/database/migrations/2017_03_11_005752_create_ims_yz_options_table.php deleted file mode 100644 index 329e0da8..00000000 --- a/database/migrations/2017_03_11_005752_create_ims_yz_options_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->string('option_name', 45)->nullable()->comment('插件名称'); - $table->text('option_value')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_options comment '插件开启记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_options'); - } - -} diff --git a/database/migrations/2017_03_14_222459_create_ims_yz_order_operation_log_table.php b/database/migrations/2017_03_14_222459_create_ims_yz_order_operation_log_table.php deleted file mode 100644 index 5956486f..00000000 --- a/database/migrations/2017_03_14_222459_create_ims_yz_order_operation_log_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('order_id')->nullable()->default(0)->comment('订单ID'); - $table->boolean('before_operation_status')->nullable()->default(0)->comment('操作前状态'); - $table->boolean('after_operation_status')->nullable()->default(0)->comment('操作后状态'); - $table->string('operator', 50)->nullable()->default('')->comment('操作员'); - $table->integer('operation_time')->nullable()->default(0)->comment('操作时间'); - $table->integer('created_at')->nullable()->default(0); - $table->integer('updated_at')->nullable(); - $table->string('type', 10)->nullable()->default('0'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_operation_log` comment'订单--状态操作记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_operation_log'); - } - -} diff --git a/database/migrations/2017_03_15_154258_create_ims_yz_order_mapping_table.php b/database/migrations/2017_03_15_154258_create_ims_yz_order_mapping_table.php deleted file mode 100644 index 4a3d0648..00000000 --- a/database/migrations/2017_03_15_154258_create_ims_yz_order_mapping_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true); - $table->integer('old_order_id')->comment('旧订单ID'); - $table->integer('new_order_id')->comment('新订单ID'); - $table->char('old_openid', 50); - $table->integer('new_member_id')->comment('新会员ID'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_order_mapping comment '会员--会员重构订单变化记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_mapping'); - } - -} diff --git a/database/migrations/2017_03_17_172136_create_ims_yz_template_message_record_table.php b/database/migrations/2017_03_17_172136_create_ims_yz_template_message_record_table.php deleted file mode 100644 index 2ba1e6e0..00000000 --- a/database/migrations/2017_03_17_172136_create_ims_yz_template_message_record_table.php +++ /dev/null @@ -1,49 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->string('member_id', 20); - $table->char('openid', 32)->default(''); - $table->string('template_id', 45); - $table->string('url')->default(''); - $table->char('top_color', 7)->default(''); - $table->text('data', 65535); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('send_time')->default(0); - $table->boolean('status')->default(0); - $table->string('msgid', 20)->nullable()->default(''); - $table->boolean('result')->default(0); - $table->integer('wechat_send_at')->default(0); - $table->boolean('sended_count')->default(1); - $table->text('extend_data', 65535)->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_template_message_record'); - } - -} diff --git a/database/migrations/2017_03_17_172136_create_ims_yz_template_message_table.php b/database/migrations/2017_03_17_172136_create_ims_yz_template_message_table.php deleted file mode 100644 index f15a4bac..00000000 --- a/database/migrations/2017_03_17_172136_create_ims_yz_template_message_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->string('type', 20)->nullable()->default('system'); - $table->string('item', 45); - $table->string('parent_item', 45)->default(''); - $table->string('title', 45); - $table->string('template_id_short', 45); - $table->string('template_id', 45); - $table->string('content'); - $table->string('example'); - $table->boolean('status')->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_template_message'); - } - -} diff --git a/database/migrations/2017_03_28_152020_create_ims_yz_pay_access_log_table.php b/database/migrations/2017_03_28_152020_create_ims_yz_pay_access_log_table.php deleted file mode 100644 index 9f5c0104..00000000 --- a/database/migrations/2017_03_28_152020_create_ims_yz_pay_access_log_table.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->text('url', 65535); - $table->char('http_method', 7); - $table->string('ip', 135); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->nullable()->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_pay_access_log comment '支付--支付通道记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_access_log'); - } - -} diff --git a/database/migrations/2017_03_28_152122_create_ims_yz_pay_log_table.php b/database/migrations/2017_03_28_152122_create_ims_yz_pay_log_table.php deleted file mode 100644 index 3c64330c..00000000 --- a/database/migrations/2017_03_28_152122_create_ims_yz_pay_log_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->tinyInteger('type')->comment('支付操作类型'); - $table->string('third_type', 255)->comment('支付方式'); - $table->decimal('price', 14, 2)->comment('支付金额'); - $table->text('operation', 65535)->comment('支付操作详情'); - $table->string('ip', 135); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->nullable()->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_pay_log comment '支付--支付记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_log'); - } - -} diff --git a/database/migrations/2017_03_28_152158_create_ims_yz_pay_refund_order_table.php b/database/migrations/2017_03_28_152158_create_ims_yz_pay_refund_order_table.php deleted file mode 100644 index cf690f4b..00000000 --- a/database/migrations/2017_03_28_152158_create_ims_yz_pay_refund_order_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id')->primary(); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->string('int_order_no', 32)->comment('支付单号'); - $table->string('out_order_no', 32)->comment('订单单号'); - $table->string('trade_no', 255)->comment('支付批次号'); - $table->decimal('price', 14,2)->comment('金额'); - $table->string('type', 255)->comment('支付操作类型'); - $table->tinyInteger('status')->comment('状态'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_pay_refund_order comment '支付--退款记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_refund_order'); - } - -} diff --git a/database/migrations/2017_03_28_152215_create_ims_yz_pay_request_data_table.php b/database/migrations/2017_03_28_152215_create_ims_yz_pay_request_data_table.php deleted file mode 100644 index f0eedeb4..00000000 --- a/database/migrations/2017_03_28_152215_create_ims_yz_pay_request_data_table.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id')->primary(); - $table->integer('uniacid'); - $table->string('out_order_no', 255)->comment('支付单号'); - $table->string('type', 255)->comment('支付操作类型'); - $table->string('third_type', 255)->nullable()->comment('支付方式'); - $table->text('params', 65535)->comment('请求参数'); - $table->integer('created_at')->default(0); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_pay_request_data comment '支付--支付请求参数记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_request_data'); - } - -} diff --git a/database/migrations/2017_03_28_152224_create_ims_yz_pay_response_data_table.php b/database/migrations/2017_03_28_152224_create_ims_yz_pay_response_data_table.php deleted file mode 100644 index 0c99c67a..00000000 --- a/database/migrations/2017_03_28_152224_create_ims_yz_pay_response_data_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id')->primary(); - $table->integer('uniacid'); - $table->string('out_order_no', 255)->comment('支付单号'); - $table->string('third_type', 255)->comment('支付方式'); - $table->text('params', 65535)->comment('响应参数'); - $table->integer('created_at')->default(0); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_pay_response_data comment '支付--订单支付请求响应参数记录(一般为微信支付宝支付等)'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_response_data'); - } - -} diff --git a/database/migrations/2017_03_28_203149_create_ims_yz_pay_order_table.php b/database/migrations/2017_03_28_203149_create_ims_yz_pay_order_table.php deleted file mode 100644 index bdafe181..00000000 --- a/database/migrations/2017_03_28_203149_create_ims_yz_pay_order_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->index('idx_uniacid'); - $table->integer('member_id')->index('idx_member_id'); - $table->string('int_order_no', 32)->nullable(); - $table->string('out_order_no', 32)->default('0')->index('idx_order_no'); - $table->string('trade_no', 255)->nullable(); - $table->tinyInteger('status')->default(0); - $table->decimal('price', 14, 2); - $table->tinyInteger('type'); - $table->string('third_type', 255); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_order'); - } - -} diff --git a/database/migrations/2017_03_30_103633_create_ims_yz_member_income_table.php b/database/migrations/2017_03_30_103633_create_ims_yz_member_income_table.php deleted file mode 100644 index 1f00629f..00000000 --- a/database/migrations/2017_03_30_103633_create_ims_yz_member_income_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('所属公众号'); - $table->integer('member_id')->comment('会员id'); - $table->string('type', 60)->default(''); - $table->integer('type_id')->nullable(); - $table->string('type_name', 120)->nullable()->comment('类型名字'); - $table->decimal('amount', 14)->default(0.00)->comment('金额'); - $table->boolean('status')->default(0)->comment('是否提现'); - $table->text('detail', 65535)->nullable()->comment('详情'); - $table->string('create_month', 20)->nullable()->default('创建月份'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_income` comment '会员--收入表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_income'); - } - -} diff --git a/database/migrations/2017_03_30_171219_create_ims_yz_withdraw_table.php b/database/migrations/2017_03_30_171219_create_ims_yz_withdraw_table.php deleted file mode 100644 index d9391d89..00000000 --- a/database/migrations/2017_03_30_171219_create_ims_yz_withdraw_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable(); - $table->integer('member_id')->nullable()->comment('会员id'); - $table->string('type', 60)->nullable()->comment('收入模型'); - $table->string('type_id', 60)->nullable()->comment('收入id'); - $table->decimal('amounts', 14)->nullable()->comment('审核金额'); - $table->decimal('poundage', 14)->nullable()->comment('手续费'); - $table->decimal('poundage_rate')->nullable()->comment('手续费比例'); - $table->string('pay_way', 100)->nullable()->comment('提现类型'); - $table->boolean('status')->nullable()->comment('审核状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_withdraw comment '财务--提现表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_withdraw'); - } - -} diff --git a/database/migrations/2017_04_06_145330_create_ims_yz_balance_recharge_table.php b/database/migrations/2017_04_06_145330_create_ims_yz_balance_recharge_table.php deleted file mode 100644 index ac74c4a4..00000000 --- a/database/migrations/2017_04_06_145330_create_ims_yz_balance_recharge_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('member_id')->nullable()->comment('充值会员ID');; - $table->decimal('old_money', 14)->nullable()->comment('修改前额度');; - $table->decimal('money', 14)->nullable()->comment('修改额度');; - $table->decimal('new_money', 14)->nullable()->comment('修改后额度');; - $table->integer('type')->nullable()->comment('充值类型');; - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->string('ordersn', 50)->nullable()->comment('充值订单号');; - $table->boolean('status')->nullable()->default(0)->comment('状态');; - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_balance_recharge` comment '财务--余额充值表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_balance_recharge'); - } - -} diff --git a/database/migrations/2017_04_06_145357_create_ims_yz_balance_transfer_table.php b/database/migrations/2017_04_06_145357_create_ims_yz_balance_transfer_table.php deleted file mode 100644 index 9af383d7..00000000 --- a/database/migrations/2017_04_06_145357_create_ims_yz_balance_transfer_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('transferor')->nullable(); - $table->integer('recipient')->nullable(); - $table->decimal('money', 14)->nullable(); - $table->integer('created_at')->nullable(); - $table->boolean('status')->nullable(); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_balance_transfer` comment '财务--余额转让表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_balance_transfer'); - } - -} diff --git a/database/migrations/2017_04_07_163632_create_ims_yz_balance_table.php b/database/migrations/2017_04_07_163632_create_ims_yz_balance_table.php deleted file mode 100644 index 632005e2..00000000 --- a/database/migrations/2017_04_07_163632_create_ims_yz_balance_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('member_id')->nullable()->comment('会员id'); - $table->decimal('old_money', 14)->nullable()->comment('修改前额度'); - $table->decimal('change_money', 14)->comment('修改额度'); - $table->decimal('new_money', 14)->comment('修改后额度'); - $table->boolean('type')->comment('变动类型,1收入,2支出'); - $table->boolean('service_type'); - $table->string('serial_number', 45)->default('')->comment('订单编号'); - $table->integer('operator')->comment('操作类型'); - $table->string('operator_id', 45)->default('')->comment('操作者id'); - $table->string('remark', 200)->default('')->comment('余额变更备注'); - $table->integer('created_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_balance comment '财务--余额变更记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_balance'); - } - -} diff --git a/database/migrations/2017_05_08_180345_create_ims_yz_order_address_table.php b/database/migrations/2017_05_08_180345_create_ims_yz_order_address_table.php deleted file mode 100644 index 91d10a71..00000000 --- a/database/migrations/2017_05_08_180345_create_ims_yz_order_address_table.php +++ /dev/null @@ -1,53 +0,0 @@ -integer('province_id')->default(0)->comment('省id'); - } - - if (!Schema::hasColumn('yz_order_address', 'city_id')) { - - $table->integer('city_id')->default(0)->comment('市id'); - } - if (!Schema::hasColumn('yz_order_address', 'district_id')) { - - $table->integer('district_id')->default(0)->comment('区id'); - } - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_address')) { - Schema::table('yz_order_address', function (Blueprint $table) { - $table->dropColumn('province_id'); - $table->dropColumn('city_id'); - $table->dropColumn('district_id'); - }); - } - } - -} diff --git a/database/migrations/2017_05_10_140639_add_ed_areaids_to_goods_sale_table.php b/database/migrations/2017_05_10_140639_add_ed_areaids_to_goods_sale_table.php deleted file mode 100644 index 6399c758..00000000 --- a/database/migrations/2017_05_10_140639_add_ed_areaids_to_goods_sale_table.php +++ /dev/null @@ -1,38 +0,0 @@ -text('ed_areaids')->nullable()->after('ed_areas'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_sale')) { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('ed_areaids'); - }); - } - } -} diff --git a/database/migrations/2017_05_10_164426_create_ims_yz_coupon_log_table.php b/database/migrations/2017_05_10_164426_create_ims_yz_coupon_log_table.php deleted file mode 100644 index 2e53a1a2..00000000 --- a/database/migrations/2017_05_10_164426_create_ims_yz_coupon_log_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->string('logno')->nullable()->default('')->comment('日志详情'); - $table->string('member_id')->nullable()->default('')->comment('会员id'); - $table->integer('couponid')->nullable()->default(0)->index('idx_couponid')->comment('优惠券id'); - $table->boolean('paystatus')->nullable()->default(0)->index('idx_paystatus')->comment('支付状态'); - $table->boolean('creditstatus')->nullable()->default(0); - $table->boolean('paytype')->nullable()->default(0)->comment('支付方式'); - $table->boolean('getfrom')->nullable()->default(0)->index('idx_getfrom')->comment('获取途径'); - $table->integer('status')->nullable()->default(0)->index('idx_status')->comment('状态'); - $table->integer('createtime')->nullable()->default(0)->index('idx_createtime')->comment(' 创建时间'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_coupon_log comment '优惠券--领取发放记录'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_coupon_log'); - } - -} diff --git a/database/migrations/2017_05_10_164426_create_ims_yz_coupon_table.php b/database/migrations/2017_05_10_164426_create_ims_yz_coupon_table.php deleted file mode 100644 index 97aa276b..00000000 --- a/database/migrations/2017_05_10_164426_create_ims_yz_coupon_table.php +++ /dev/null @@ -1,74 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('cat_id')->nullable()->default(0)->comment('分类ID'); - $table->string('name')->nullable()->default('')->comment('优惠券名称'); - $table->boolean('get_type')->nullable()->default(0)->comment('获取优惠券的方式'); - $table->integer('level_limit')->nullable()->comment('领取条件 - 会员等级'); - $table->integer('get_max')->nullable()->default(0)->comment('每个人的限领数量'); - $table->boolean('use_type')->nullable()->default(0)->comment('使用方式'); - $table->string('bgcolor')->nullable()->default('')->comment('背景颜色'); - $table->integer('enough')->unsigned()->nullable()->default(0)->comment('使用条件(消费金额前提)'); - $table->boolean('coupon_type')->nullable()->default(0)->comment('优惠券类型'); - $table->boolean('time_limit')->nullable()->default(0)->comment('使用时间限制'); - $table->integer('time_days')->nullable()->default(0)->comment('使用时间限制'); - $table->integer('time_start')->nullable()->default(0)->comment('起始使用时间'); - $table->integer('time_end')->nullable()->default(0)->comment('截止使用时间'); - $table->boolean('coupon_method')->nullable()->comment('优惠方式'); - $table->decimal('deduct', 10)->nullable()->default(0.00)->comment('优惠立减'); - $table->decimal('discount', 10)->nullable()->default(0.00)->comment('优惠打折'); - $table->string('thumb')->nullable()->default('')->comment('缩略图'); - $table->text('desc', 65535)->nullable()->comment('描述说明'); - $table->integer('total')->nullable()->default(0)->comment('优惠券发放总数'); - $table->boolean('status')->nullable()->default(0)->comment('是否启用'); - $table->text('resp_desc', 65535)->nullable()->comment('推送说明'); - $table->string('resp_thumb')->nullable()->default('')->comment('推送缩略图'); - $table->string('resp_title')->nullable()->default('')->comment('推送标题'); - $table->string('resp_url')->nullable()->default('')->comment('推送链接'); - $table->string('remark', 1000)->nullable()->default('')->comment('备注'); - $table->integer('display_order')->nullable()->default(0)->comment('排序'); - $table->integer('supplier_uid')->nullable()->default(0)->comment('供应商uid'); - $table->text('cashiersids', 65535)->nullable()->comment('收银台id'); - $table->text('cashiersnames', 65535)->nullable()->comment('收银台名称'); - $table->text('category_ids', 65535)->nullable()->comment('分类id'); - $table->text('categorynames', 65535)->nullable()->comment('分类名称'); - $table->text('goods_names', 65535)->nullable()->comment('商品名称'); - $table->text('goods_ids', 65535)->nullable()->comment('商品id'); - $table->text('supplierids', 65535)->nullable()->comment('供应商ids'); - $table->text('suppliernames', 65535)->nullable()->comment('供应商名称'); - $table->integer('createtime')->nullable()->default(0); - $table->integer('created_at')->unsigned()->nullable(); - $table->integer('updated_at')->unsigned()->nullable(); - $table->integer('deleted_at')->unsigned()->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_coupon comment '优惠券--优惠券表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_coupon'); - } - -} diff --git a/database/migrations/2017_05_10_164426_create_ims_yz_member_coupon_table.php b/database/migrations/2017_05_10_164426_create_ims_yz_member_coupon_table.php deleted file mode 100644 index 72bff90c..00000000 --- a/database/migrations/2017_05_10_164426_create_ims_yz_member_coupon_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->string('uid')->nullable()->default('')->comment('会员id'); - $table->integer('coupon_id')->nullable()->default(0)->index('idx_couponid')->comment('优惠券id'); - $table->boolean('get_type')->nullable()->default(0)->index('idx_gettype')->comment('获取优惠券的方式'); - $table->integer('used')->nullable()->default(0)->comment('是否已经使用'); - $table->integer('use_time')->nullable()->default(0)->comment('使用优惠券的时间'); - $table->integer('get_time')->nullable()->default(0)->comment('获取优惠券的时间'); - $table->integer('send_uid')->nullable()->default(0)->comment('手动发放优惠券的操作人员的 uid'); - $table->string('order_sn')->nullable()->default('')->comment('使用优惠券的订单号'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_coupon comment '优惠券--会员优惠券'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_coupon'); - } - -} diff --git a/database/migrations/2017_05_10_170911_add_deleted_at_to_ims_yz_member_coupon.php b/database/migrations/2017_05_10_170911_add_deleted_at_to_ims_yz_member_coupon.php deleted file mode 100644 index af022c62..00000000 --- a/database/migrations/2017_05_10_170911_add_deleted_at_to_ims_yz_member_coupon.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('deleted_at')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_coupon')) { - Schema::table('yz_member_coupon', function (Blueprint $table) { - $table->dropColumn('deleted_at'); - }); - } - } -} diff --git a/database/migrations/2017_05_10_183520_add_level_limit_to_ims_yz_coupon.php b/database/migrations/2017_05_10_183520_add_level_limit_to_ims_yz_coupon.php deleted file mode 100644 index 902053f7..00000000 --- a/database/migrations/2017_05_10_183520_add_level_limit_to_ims_yz_coupon.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('level_limit')->nullable()->after('get_type')->comment('领取条件 - 会员等级'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_coupon', function (Blueprint $table) { - $table->dropColumn('level_limit'); - }); - } -} diff --git a/database/migrations/2017_05_10_192431_create_ims_yz_order_pay_table.php b/database/migrations/2017_05_10_192431_create_ims_yz_order_pay_table.php deleted file mode 100644 index 6bae1f36..00000000 --- a/database/migrations/2017_05_10_192431_create_ims_yz_order_pay_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->string('pay_sn', 23)->default('')->comment('支付流水号'); - $table->boolean('status')->default(0)->comment('状态'); - $table->boolean('pay_type_id')->default(0)->comment('支付类型ID'); - $table->integer('pay_time')->default(0)->comment('支付时间'); - $table->integer('refund_time')->default(0); - $table->string('order_ids', 500)->default('')->comment('合并支付订单ID数组'); - $table->decimal('amount', 10)->default(0.00)->comment('支付金额'); - $table->integer('uid'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_pay` comment'订单--支付流水记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_pay'); - } - -} diff --git a/database/migrations/2017_05_10_223507_add_comment_add_type.php b/database/migrations/2017_05_10_223507_add_comment_add_type.php deleted file mode 100644 index 25b800c4..00000000 --- a/database/migrations/2017_05_10_223507_add_comment_add_type.php +++ /dev/null @@ -1,41 +0,0 @@ -tinyInteger('type')->default(3); - } - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_comment')) { - Schema::table('yz_comment', function (Blueprint $table) { - if (Schema::hasColumn('yz_comment', 'type')) { - $table->dropColumn('type'); - } - }); - } - } - -} diff --git a/database/migrations/2017_05_12_161241_create_ims_yz_pay_withdraw_order_table.php b/database/migrations/2017_05_12_161241_create_ims_yz_pay_withdraw_order_table.php deleted file mode 100644 index 200f4ca7..00000000 --- a/database/migrations/2017_05_12_161241_create_ims_yz_pay_withdraw_order_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->string('int_order_no', 32); - $table->string('out_order_no', 32); - $table->string('trade_no', 255)->nullable(); - $table->decimal('price', 14, 2); - $table->string('type', 255); - $table->integer('status'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_withdraw_order'); - } -} diff --git a/database/migrations/2017_05_12_165251_delete_max_point_deduct_to_ims_yz_goods_sale_table.php b/database/migrations/2017_05_12_165251_delete_max_point_deduct_to_ims_yz_goods_sale_table.php deleted file mode 100644 index 7526f211..00000000 --- a/database/migrations/2017_05_12_165251_delete_max_point_deduct_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,34 +0,0 @@ -dropColumn('max_point_deduct'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2017_05_12_170416_add_max_point_deduct_to_ims_yz_goods_sale_table.php b/database/migrations/2017_05_12_170416_add_max_point_deduct_to_ims_yz_goods_sale_table.php deleted file mode 100644 index d9d5af8f..00000000 --- a/database/migrations/2017_05_12_170416_add_max_point_deduct_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('max_point_deduct', 255)->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_sale')) { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('max_point_deduct'); - }); - } - } -} diff --git a/database/migrations/2017_05_13_174412_delete_point_to_ims_yz_goods_sale_table.php b/database/migrations/2017_05_13_174412_delete_point_to_ims_yz_goods_sale_table.php deleted file mode 100644 index 327df969..00000000 --- a/database/migrations/2017_05_13_174412_delete_point_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,34 +0,0 @@ -dropColumn('point'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2017_05_13_174655_add_point_to_ims_yz_goods_sale_table.php b/database/migrations/2017_05_13_174655_add_point_to_ims_yz_goods_sale_table.php deleted file mode 100644 index de96dfab..00000000 --- a/database/migrations/2017_05_13_174655_add_point_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('point', 255)->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_sale')) { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('point'); - }); - } - } -} diff --git a/database/migrations/2017_05_15_101443_add_delede_at_to_ims_yz_member_table.php b/database/migrations/2017_05_15_101443_add_delede_at_to_ims_yz_member_table.php deleted file mode 100644 index c28e956f..00000000 --- a/database/migrations/2017_05_15_101443_add_delede_at_to_ims_yz_member_table.php +++ /dev/null @@ -1,53 +0,0 @@ -string('relation', 255)->nullable(); - } - - if (!Schema::hasColumn('yz_member', 'created_at')) { - $table->integer('created_at')->default(0); - } - - if (!Schema::hasColumn('yz_member', 'updated_at')) { - $table->integer('updated_at')->default(0); - } - - if (!Schema::hasColumn('yz_member', 'deleted_at')) { - $table->integer('deleted_at')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member')) { - Schema::table('yz_member', function (Blueprint $table) { - $table->dropColumn('relation'); - $table->dropColumn('created_at'); - $table->dropColumn('updated_at'); - $table->dropColumn('deleted_at'); - }); - } - } -} diff --git a/database/migrations/2017_05_15_181112_add_goods_market_price_order_goods_table.php b/database/migrations/2017_05_15_181112_add_goods_market_price_order_goods_table.php deleted file mode 100644 index 96b5e2e2..00000000 --- a/database/migrations/2017_05_15_181112_add_goods_market_price_order_goods_table.php +++ /dev/null @@ -1,45 +0,0 @@ -decimal('goods_market_price', 10)->default(0.00); - } - if (!Schema::hasColumn('yz_order_goods', 'goods_cost_price')) { - - $table->decimal('goods_cost_price', 10)->default(0.00); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_goods')) { - Schema::table('yz_order_goods', function (Blueprint $table) { - $table->dropColumn('goods_market_price'); - $table->dropColumn('goods_cost_price'); - }); - } - } -} diff --git a/database/migrations/2017_05_15_181253_add_order_pay_id_to_yz_order_table.php b/database/migrations/2017_05_15_181253_add_order_pay_id_to_yz_order_table.php deleted file mode 100644 index 9425692e..00000000 --- a/database/migrations/2017_05_15_181253_add_order_pay_id_to_yz_order_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('order_pay_id')->default(0); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('order_pay_id'); - }); - } - } -} diff --git a/database/migrations/2017_05_16_125525_add_updated_at_to_ims_yz_member_unique_table.php b/database/migrations/2017_05_16_125525_add_updated_at_to_ims_yz_member_unique_table.php deleted file mode 100644 index 8fa0655d..00000000 --- a/database/migrations/2017_05_16_125525_add_updated_at_to_ims_yz_member_unique_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('updated_at')->default(0); - } - - if (!Schema::hasColumn('yz_member_unique', 'deleted_at')) { - - $table->integer('deleted_at')->nullable(); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_unique')) { - Schema::table('yz_member_unique', function (Blueprint $table) { - $table->dropColumn('updated_at'); - $table->dropColumn('deleted_at'); - }); - } - } -} diff --git a/database/migrations/2017_05_18_104602_add_note_to_yz_order_address_table.php b/database/migrations/2017_05_18_104602_add_note_to_yz_order_address_table.php deleted file mode 100644 index 09b34797..00000000 --- a/database/migrations/2017_05_18_104602_add_note_to_yz_order_address_table.php +++ /dev/null @@ -1,38 +0,0 @@ -text('note')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_address')) { - Schema::table('yz_order_address', function (Blueprint $table) { - $table->dropColumn('note'); - }); - } - } -} diff --git a/database/migrations/2017_05_18_171828_create_ims_yz_return_express_table.php b/database/migrations/2017_05_18_171828_create_ims_yz_return_express_table.php deleted file mode 100644 index e87834d6..00000000 --- a/database/migrations/2017_05_18_171828_create_ims_yz_return_express_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->integer('refund_id')->default(0)->index('idx_order_id')->comment('售后表id'); - $table->string('express_company_name', 50)->default('0')->comment('物流公司名称'); - $table->string('express_sn', 50)->default('0')->comment('物流单号'); - $table->string('express_code', 20)->default('0')->comment('物流公司编码'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_return_express comment '商城--售后客户发货物流'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_return_express'); - } - -} diff --git a/database/migrations/2017_05_18_173923_create_ims_yz_resend_express_table.php b/database/migrations/2017_05_18_173923_create_ims_yz_resend_express_table.php deleted file mode 100644 index f5e6ee5e..00000000 --- a/database/migrations/2017_05_18_173923_create_ims_yz_resend_express_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->integer('refund_id')->default(0)->index('idx_order_id')->comment('售后表id'); - $table->string('express_company_name', 50)->default('0')->comment('物流公司名称'); - $table->string('express_sn', 50)->default('0')->comment('物流单号'); - $table->string('express_code', 20)->default('0')->comment('物流公司编码'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_resend_express comment '商城--售后卖家发货物流'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_resend_express'); - } - -} diff --git a/database/migrations/2017_05_24_105902_add_data_ims_yz_menu.php b/database/migrations/2017_05_24_105902_add_data_ims_yz_menu.php deleted file mode 100644 index 4a4270b5..00000000 --- a/database/migrations/2017_05_24_105902_add_data_ims_yz_menu.php +++ /dev/null @@ -1,332 +0,0 @@ -update(['url'=>'finance.balance-records.index']); - - $_menu = Menu::select('id')->where('item', 'goods.goods')->first(); - - if (!is_null($_menu)) { - $modelOne = Menu::select('id')->where('item', 'goods.goods.edit')->first(); - if ($modelOne) { - Menu::where('id', $modelOne->id)->update(['menu' => 0]); - } else { - Menu::insert([ - 'name' => '编辑商品', - 'item' => 'goods.goods.edit', - 'url' => 'goods.goods.edit', - 'url_params' => '', - 'permit' => 1, - 'menu' => 0, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelTwo = Menu::select('id')->where('item', 'goods.goods.create')->first(); - if ($modelOne) { - Menu::where('id', $modelTwo->id)->update(['menu' => 0]); - } else { - Menu::insert([ - 'name' => '添加商品', - 'item' => 'goods.goods.create', - 'url' => 'goods.goods.create', - 'url_params' => '', - 'permit' => 1, - 'menu' => 0, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelThree = Menu::select('id')->where('item', 'goods.goods.destroy')->first(); - if ($modelOne) { - Menu::where('id', $modelThree->id)->update(['menu' => 0]); - } else { - Menu::insert([ - 'name' => '添加商品', - 'item' => 'goods.goods.destroy', - 'url' => 'goods.goods.destroy', - 'url_params' => '', - 'permit' => 1, - 'menu' => 0, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelFour = Menu::select('id')->where('item', 'goods.goods.copy')->first(); - if ($modelOne) { - Menu::where('id', $modelFour->id)->update(['menu' => 0]); - } else { - Menu::insert([ - 'name' => '添加商品', - 'item' => 'goods.goods.copy', - 'url' => 'goods.goods.copy', - 'url_params' => '', - 'permit' => 1, - 'menu' => 0, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - } - - /* $_menu = Menu::select('id')->where('url', 'order.list')->first(); - if ($_menu->id) { - $modelOne = Menu::select('id')->where('url', 'refund.list.refund')->first(); - if ($modelOne) { - Menu::where('id', $modelOne->id)->update([ - 'name' => '退换货订单', - 'item' => 'refund_list_refund', - 'url' => 'refund.list.refund', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '退换货订单', - 'item' => 'refund_list_refund', - 'url' => 'refund.list.refund', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelTwo = Menu::select('id')->where('url', 'refund.list.refunded')->first(); - if ($modelTwo) { - Menu::where('id', $modelTwo->id)->update([ - 'name' => '已退款', - 'item' => 'refund_list_refunded', - 'url' => 'refund.list.refunded', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '已退款', - 'item' => 'refund_list_refunded', - 'url' => 'refund.list.refunded', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - } - - $_menu = Menu::select('id')->where('url', 'refund.list.refund')->first(); - if ($_menu->id) { - $modelOne = Menu::select('id')->where('url', 'refund.list.refundMoney')->first(); - if ($modelOne) { - Menu::where('id', $modelOne->id)->update([ - 'name' => '仅退款', - 'item' => 'refund_list_refundMoney', - 'url' => 'refund.list.refundMoney', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '仅退款', - 'item' => 'refund_list_refundMoney', - 'url' => 'refund.list.refundMoney', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelTwo = Menu::select('id')->where('url', 'refund.list.returnGoods')->first(); - if ($modelTwo) { - Menu::where('id', $modelTwo->id)->update([ - 'name' => '退货退款', - 'item' => 'refund_list_returnGoods', - 'url' => 'refund.list.returnGoods', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '退货退款', - 'item' => 'refund_list_returnGoods', - 'url' => 'refund.list.returnGoods', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelThree = Menu::select('id')->where('url', 'refund.list.exchangeGoods')->first(); - if ($modelThree) { - Menu::where('id', $modelThree->id)->update([ - 'name' => '换货', - 'item' => 'refund_list_exchangeGoods', - 'url' => 'refund.list.exchangeGoods', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '换货', - 'item' => 'refund_list_exchangeGoods', - 'url' => 'refund.list.exchangeGoods', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - $modelFour = Menu::select('id')->where('url', 'refund.list.refund')->first(); - if ($modelFour) { - Menu::where('id', $modelFour->id)->update([ - 'name' => '全部', - 'item' => 'refund_list_refund_all', - 'url' => 'refund.list.refund', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } else { - Menu::insert([ - 'name' => '全部', - 'item' => 'refund_list_refund_all', - 'url' => 'refund.list.refund', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-circle-o', - 'parent_id' => $_menu->id, - 'sort' => 1, - 'status' => 1, - 'created_at' => time(), - 'updated_at' => time(), - 'deleted_at' => NULL - ]); - } - }*/ - - - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_06_01_153820_add_data_to_yz_pay_type.php b/database/migrations/2017_06_01_153820_add_data_to_yz_pay_type.php deleted file mode 100644 index 4571d695..00000000 --- a/database/migrations/2017_06_01_153820_add_data_to_yz_pay_type.php +++ /dev/null @@ -1,82 +0,0 @@ -string('code', 50); - } - if (!\Schema::hasColumn('yz_pay_type', 'type')) { - $table->tinyInteger('type'); - } - if (!\Schema::hasColumn('yz_pay_type', 'plugin_id')) { - $table->tinyInteger('plugin_id'); - } - if (!\Schema::hasColumn('yz_pay_type', 'unit')) { - $table->string('unit', 50); - } - - if (!\Schema::hasColumn('yz_pay_type', 'updated_at')) { - - $table->integer('updated_at')->nullable(); - } - if (!\Schema::hasColumn('yz_pay_type', 'created_at')) { - - $table->integer('created_at')->nullable(); - } - if (!\Schema::hasColumn('yz_pay_type', 'deleted_at')) { - - $table->integer('deleted_at')->nullable(); - } - - }); - \Illuminate\Support\Facades\DB::transaction(function () { - $this->syncData(); - }); - } - } - - private function syncData() - { - \app\common\models\PayType::where('id','>','-1')->delete(); - \app\common\models\PayType::insert([ - ['name'=>'未支付', 'code'=>'unPay', 'type'=>0, 'plugin_id'=>0, 'unit'=>''], - ['name'=>'微信支付', 'code'=>'wechatPay', 'type'=>2, 'plugin_id'=>0, 'unit'=>'元'], - ['name'=>'支付宝支付', 'code'=>'alipay', 'type'=>2, 'plugin_id'=>0, 'unit'=>'元'], - ['name'=>'余额支付', 'code'=>'balance', 'type'=>1, 'plugin_id'=>0, 'unit'=>'元'], - ['name'=>'金币支付', 'code'=>'gold', 'type'=>1, 'plugin_id'=>0, 'unit'=>'金币']] - ); - \app\common\models\PayType::where('code','unPay')->update(['id'=>0]); - \app\common\models\PayType::where('code','wechatPay')->update(['id'=>1]); - \app\common\models\PayType::where('code','alipay')->update(['id'=>2]); - \app\common\models\PayType::where('code','balance')->update(['id'=>3]); - \app\common\models\PayType::where('code','gold')->update(['id'=>4]); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_pay_type')) { - Schema::table('yz_pay_type', function (Blueprint $table) { - $table->dropColumn('code'); - }); - } - } -} diff --git a/database/migrations/2017_06_07_181046_change_enable_time_limit_to_goods_privilege_table.php b/database/migrations/2017_06_07_181046_change_enable_time_limit_to_goods_privilege_table.php deleted file mode 100644 index 90f886be..00000000 --- a/database/migrations/2017_06_07_181046_change_enable_time_limit_to_goods_privilege_table.php +++ /dev/null @@ -1,34 +0,0 @@ -dropColumn('enable_time_limit'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2017_06_07_181552_add_enable_time_limit_to_goods_privilege_table.php b/database/migrations/2017_06_07_181552_add_enable_time_limit_to_goods_privilege_table.php deleted file mode 100644 index 21ddc6ab..00000000 --- a/database/migrations/2017_06_07_181552_add_enable_time_limit_to_goods_privilege_table.php +++ /dev/null @@ -1,42 +0,0 @@ -tinyInteger('enable_time_limit')->nullable()->default(0); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_privilege')) { - if (Schema::hasColumn('yz_goods_privilege', 'enable_time_limit')) { - - Schema::table('yz_goods_privilege', function (Blueprint $table) { - $table->dropColumn('enable_time_limit'); - }); - } - } - } -} diff --git a/database/migrations/2017_06_09_163600_add_menu_data_to_menu.php b/database/migrations/2017_06_09_163600_add_menu_data_to_menu.php deleted file mode 100644 index f0393ef1..00000000 --- a/database/migrations/2017_06_09_163600_add_menu_data_to_menu.php +++ /dev/null @@ -1,28 +0,0 @@ -bigIncrements('id'); - $table->string('queue'); - $table->longText('payload'); - $table->tinyInteger('attempts')->unsigned(); - $table->unsignedInteger('reserved_at')->nullable(); - $table->unsignedInteger('available_at'); - $table->unsignedInteger('created_at'); - //$table->index(['queue', 'reserved_at'], 'index'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('jobs'); - } -} diff --git a/database/migrations/2017_06_21_174522_create_ims_yz_exhelper_express_table.php b/database/migrations/2017_06_21_174522_create_ims_yz_exhelper_express_table.php deleted file mode 100644 index 42b5f664..00000000 --- a/database/migrations/2017_06_21_174522_create_ims_yz_exhelper_express_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->boolean('type')->default(0); - $table->string('expressname')->nullable()->default(''); - $table->string('expresscom')->nullable()->default(''); - $table->string('express')->nullable()->default(''); - $table->decimal('width', 10)->nullable()->default(0.00); - $table->text('datas', 65535)->nullable(); - $table->decimal('height', 10)->nullable()->default(0.00); - $table->string('bg')->nullable()->default(''); - $table->boolean('isdefault')->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_express'); - } - -} diff --git a/database/migrations/2017_06_21_174528_create_ims_yz_exhelper_goods_table.php b/database/migrations/2017_06_21_174528_create_ims_yz_exhelper_goods_table.php deleted file mode 100644 index 912f13b6..00000000 --- a/database/migrations/2017_06_21_174528_create_ims_yz_exhelper_goods_table.php +++ /dev/null @@ -1,35 +0,0 @@ -increments('id'); - $table->integer('goods_id')->default(0); - $table->string('short_title', 100)->nullable()->default(''); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_goods'); - } - -} diff --git a/database/migrations/2017_06_21_174535_create_ims_yz_exhelper_order_table.php b/database/migrations/2017_06_21_174535_create_ims_yz_exhelper_order_table.php deleted file mode 100644 index a6f5c666..00000000 --- a/database/migrations/2017_06_21_174535_create_ims_yz_exhelper_order_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->string('order_sn')->default(''); - $table->string('realname', 100)->nullable(); - $table->string('mobile', 50)->nullable(); - $table->string('address')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_order'); - } - -} diff --git a/database/migrations/2017_06_21_174542_create_ims_yz_exhelper_print_table.php b/database/migrations/2017_06_21_174542_create_ims_yz_exhelper_print_table.php deleted file mode 100644 index 98fc59e1..00000000 --- a/database/migrations/2017_06_21_174542_create_ims_yz_exhelper_print_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->integer('order_id')->default(0); - $table->boolean('express_print_status')->default(0); - $table->boolean('send_print_status')->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_print'); - } - -} diff --git a/database/migrations/2017_06_21_174557_create_ims_yz_exhelper_sys_table.php b/database/migrations/2017_06_21_174557_create_ims_yz_exhelper_sys_table.php deleted file mode 100644 index 3165e3e4..00000000 --- a/database/migrations/2017_06_21_174557_create_ims_yz_exhelper_sys_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable()->default(0); - $table->string('ip', 20)->nullable()->default(''); - $table->integer('port')->nullable()->default(0); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_sys'); - } - -} diff --git a/database/migrations/2017_07_10_142350_add_order_sn_to_balance_transfer.php b/database/migrations/2017_07_10_142350_add_order_sn_to_balance_transfer.php deleted file mode 100644 index e1118be4..00000000 --- a/database/migrations/2017_07_10_142350_add_order_sn_to_balance_transfer.php +++ /dev/null @@ -1,40 +0,0 @@ -string('order_sn', 255)->nullable(); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_balance_transfer')) { - Schema::table('yz_balance_transfer', function (Blueprint $table) { - $table->dropColumn('order_sn'); - }); - } - } -} diff --git a/database/migrations/2017_07_12_103441_add_ed_full_to_goods_sale.php b/database/migrations/2017_07_12_103441_add_ed_full_to_goods_sale.php deleted file mode 100644 index f4fc15f6..00000000 --- a/database/migrations/2017_07_12_103441_add_ed_full_to_goods_sale.php +++ /dev/null @@ -1,45 +0,0 @@ -decimal('ed_full', 10)->nullable()->default(0.00); - } - if (!Schema::hasColumn('yz_goods_sale', 'ed_reduction')) { - $table->decimal('ed_reduction', 10)->nullable()->default(0.00); - } - }); - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_goods_sale')) { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('ed_full'); - $table->dropColumn('ed_reduction'); - }); - } - } -} diff --git a/database/migrations/2017_07_14_120218_create_ims_yz_goods_coupon_table.php b/database/migrations/2017_07_14_120218_create_ims_yz_goods_coupon_table.php deleted file mode 100644 index b8e6fe37..00000000 --- a/database/migrations/2017_07_14_120218_create_ims_yz_goods_coupon_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('goods_id')->nullable(); - $table->boolean('is_coupon')->nullable(); - $table->integer('coupon_id')->nullable(); - $table->boolean('send_times')->nullable()->comment('发送时间'); - $table->integer('send_num')->nullable()->comment('发放次数'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_goods_coupon` comment'商品--优惠券挂机'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_goods_coupon')) { - Schema::drop('yz_goods_coupon'); - } - } - -} diff --git a/database/migrations/2017_07_14_120255_create_ims_yz_goods_coupon_queue_table.php b/database/migrations/2017_07_14_120255_create_ims_yz_goods_coupon_queue_table.php deleted file mode 100644 index 89abf06b..00000000 --- a/database/migrations/2017_07_14_120255_create_ims_yz_goods_coupon_queue_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable(); - $table->integer('goods_id')->nullable()->comment('商品ID'); - $table->integer('uid')->nullable()->comment('会员ID'); - $table->integer('coupon_id')->nullable()->comment('优惠券ID'); - $table->integer('send_num')->nullable()->comment('发放数量'); - $table->integer('end_send_num')->nullable()->comment('已发放'); - $table->integer('status')->nullable()->comment('状态 0 :未完成 1:已完成'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_coupon_queue comment '优惠券--商品优惠券队列'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_coupon_queue')) { - Schema::drop('yz_goods_coupon_queue'); - } - } - -} diff --git a/database/migrations/2017_07_19_102348_add_servicetax_to_ims_yz_withdraw.php b/database/migrations/2017_07_19_102348_add_servicetax_to_ims_yz_withdraw.php deleted file mode 100644 index c96e543d..00000000 --- a/database/migrations/2017_07_19_102348_add_servicetax_to_ims_yz_withdraw.php +++ /dev/null @@ -1,46 +0,0 @@ -decimal('servicetax', 12)->nullable()->comment('劳务税'); - } - if (!Schema::hasColumn('yz_withdraw', 'servicetax_rate')) { - $table->integer('servicetax_rate')->nullable()->comment('劳务税比例'); - } - if (!Schema::hasColumn('yz_withdraw', 'actual_servicetax')) { - $table->decimal('actual_servicetax', 12)->nullable()->comment('最终劳务税'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_withdraw')) { - Schema::table('yz_withdraw', function (Blueprint $table) { - $table->dropColumn('servicetax'); - $table->dropColumn('servicetax_rate'); - $table->dropColumn('actual_servicetax'); - }); - } - } -} diff --git a/database/migrations/2017_07_19_174939_add_is_virtual_to_yz_member_table.php b/database/migrations/2017_07_19_174939_add_is_virtual_to_yz_member_table.php deleted file mode 100644 index 9b394172..00000000 --- a/database/migrations/2017_07_19_174939_add_is_virtual_to_yz_member_table.php +++ /dev/null @@ -1,40 +0,0 @@ -tinyInteger('is_virtual')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order', 'is_virtual')) { - $table->dropColumn('is_virtual'); - } - }); - } - } -} diff --git a/database/migrations/2017_07_20_114113_change_type_id_to_ims_yz_withdraw_table.php b/database/migrations/2017_07_20_114113_change_type_id_to_ims_yz_withdraw_table.php deleted file mode 100644 index 85fee2f0..00000000 --- a/database/migrations/2017_07_20_114113_change_type_id_to_ims_yz_withdraw_table.php +++ /dev/null @@ -1,38 +0,0 @@ -text('type_id')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_withdraw', function (Blueprint $table) { - if (Schema::hasColumn('yz_withdraw', 'type_id')) { - $table->string('type_id')->change(); - } - }); - } -} \ No newline at end of file diff --git a/database/migrations/2017_07_21_115131_add_data_to_pay_type.php b/database/migrations/2017_07_21_115131_add_data_to_pay_type.php deleted file mode 100644 index d29fca37..00000000 --- a/database/migrations/2017_07_21_115131_add_data_to_pay_type.php +++ /dev/null @@ -1,36 +0,0 @@ -count()){ - return; - } - \app\common\models\PayType::insert(['name' => '后台付款', 'code' => 'backend', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'backend')->update(['id' => 5]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_pay_type')) { - \app\common\models\PayType::where('code', 'backend')->delete(); - } - } -} diff --git a/database/migrations/2017_07_25_150523_add_vip_price_to_order_goods.php b/database/migrations/2017_07_25_150523_add_vip_price_to_order_goods.php deleted file mode 100644 index 8122ac3a..00000000 --- a/database/migrations/2017_07_25_150523_add_vip_price_to_order_goods.php +++ /dev/null @@ -1,49 +0,0 @@ -decimal('vip_price', 10)->nullable()->default(0.00)->comment('会员价'); - //$table->decimal('vip_price', 10)->nullable()->default(0.00); - } - - if (!Schema::hasColumn('yz_order_goods', 'coupon_price')) { - $table->decimal('coupon_price', 10)->nullable()->default(0.00)->comment('优惠券金额'); - //$table->decimal('vip_price', 10)->nullable()->default(0.00); - } - }); - } - if (\Schema::hasTable('yz_order_refund')) { - Schema::table('yz_order_refund', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_refund', 'reject_reason')) { - $table->longText('reject_reason')->comment('驳回说明'); - } - }); - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_08_01_170424_update_engine_innodb_to_mc_members.php b/database/migrations/2017_08_01_170424_update_engine_innodb_to_mc_members.php deleted file mode 100644 index ad0e664c..00000000 --- a/database/migrations/2017_08_01_170424_update_engine_innodb_to_mc_members.php +++ /dev/null @@ -1,31 +0,0 @@ -getTablePrefix()."mc_members engine = InnoDB"); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_08_02_095024_create_ims_yz_order_coupon_table.php b/database/migrations/2017_08_02_095024_create_ims_yz_order_coupon_table.php deleted file mode 100644 index 70022bb7..00000000 --- a/database/migrations/2017_08_02_095024_create_ims_yz_order_coupon_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id')->comment('订单ID'); - $table->integer('coupon_id')->comment('优惠券ID'); - $table->integer('member_coupon_id')->default(0)->comment('会员优惠券ID'); - $table->string('name', 100)->default('')->comment('优惠券名称'); - $table->decimal('amount', 10)->default(0.00)->comment('优惠金额'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_coupon` comment'订单--优惠券使用记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_coupon')) { - - Schema::drop('yz_order_coupon'); - } - } - -} diff --git a/database/migrations/2017_08_02_095151_create_ims_yz_order_deduction_table.php b/database/migrations/2017_08_02_095151_create_ims_yz_order_deduction_table.php deleted file mode 100644 index 3fe8015c..00000000 --- a/database/migrations/2017_08_02_095151_create_ims_yz_order_deduction_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id')->comment('订单ID'); - $table->string('code')->default('')->comment('抵扣标识'); - $table->string('name', 100)->default('')->comment('抵扣名称'); - $table->decimal('amount', 10)->default(0.00)->comment('抵扣金额'); - $table->decimal('coin',14,2)->default(0)->comment('抵扣数值'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_deduction` comment'订单--抵扣记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_deduction')) { - - Schema::drop('yz_order_deduction'); - } - } - -} diff --git a/database/migrations/2017_08_02_095459_change_title_in_order_goods_table.php b/database/migrations/2017_08_02_095459_change_title_in_order_goods_table.php deleted file mode 100644 index 2c7c7216..00000000 --- a/database/migrations/2017_08_02_095459_change_title_in_order_goods_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('title')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2017_08_09_092854_update_field_type_to_yz_options.php b/database/migrations/2017_08_09_092854_update_field_type_to_yz_options.php deleted file mode 100644 index 22d6625b..00000000 --- a/database/migrations/2017_08_09_092854_update_field_type_to_yz_options.php +++ /dev/null @@ -1,34 +0,0 @@ -text('option_value')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_08_10_100838_add_cloud_pay_to_pay_type_table.php b/database/migrations/2017_08_10_100838_add_cloud_pay_to_pay_type_table.php deleted file mode 100644 index 25175da8..00000000 --- a/database/migrations/2017_08_10_100838_add_cloud_pay_to_pay_type_table.php +++ /dev/null @@ -1,40 +0,0 @@ -count()){ - \app\common\models\PayType::insert(['name' => '云收银微信', 'code' => 'cloudPayWechat', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'cloudPayWechat')->update(['id' => 6]); - } - if(!\app\common\models\PayType::whereCode('cloudPayAlipay')->count()){ - \app\common\models\PayType::insert(['name' => '云收银支付宝', 'code' => 'cloudPayAlipay', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'cloudPayAlipay')->update(['id' => 7]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_pay_type')) { - \app\common\models\PayType::where('code', 'cloudPayWechat')->delete(); - \app\common\models\PayType::where('code', 'cloudPayAlipay')->delete(); - } - } -} diff --git a/database/migrations/2017_08_15_144630_change_display_order_to_yz_category.php b/database/migrations/2017_08_15_144630_change_display_order_to_yz_category.php deleted file mode 100644 index 1752f0ef..00000000 --- a/database/migrations/2017_08_15_144630_change_display_order_to_yz_category.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('display_order')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_08_15_150915_add_cash_pay_to_pay_type_table.php b/database/migrations/2017_08_15_150915_add_cash_pay_to_pay_type_table.php deleted file mode 100644 index d96285d4..00000000 --- a/database/migrations/2017_08_15_150915_add_cash_pay_to_pay_type_table.php +++ /dev/null @@ -1,35 +0,0 @@ -count()) { - \app\common\models\PayType::insert(['name' => '现金支付', 'code' => 'cashPay', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'cashPay')->update(['id' => 8]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_pay_type')) { - \app\common\models\PayType::where('code', 'cashPay')->delete(); - } - } -} diff --git a/database/migrations/2017_08_16_144547_create_ims_yz_order_discount_table.php b/database/migrations/2017_08_16_144547_create_ims_yz_order_discount_table.php deleted file mode 100644 index 5d39937e..00000000 --- a/database/migrations/2017_08_16_144547_create_ims_yz_order_discount_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id'); - $table->string('discount_code', 50)->default('')->comment('折扣代码'); - $table->string('name', 100)->default('')->comment('名称'); - $table->decimal('amount', 10)->default(0.00)->comment('金额'); - $table->boolean('is_indirect')->default(0)->comment('间接计算出'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_discount` comment'订单--优惠记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_discount')) { - Schema::drop('yz_order_discount'); - } - } - -} diff --git a/database/migrations/2017_08_16_144558_create_ims_yz_order_goods_discount_table.php b/database/migrations/2017_08_16_144558_create_ims_yz_order_goods_discount_table.php deleted file mode 100644 index a1f10b1e..00000000 --- a/database/migrations/2017_08_16_144558_create_ims_yz_order_goods_discount_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_goods_id'); - $table->string('discount_code', 50)->default('')->comment('折扣代码'); - $table->string('name', 100)->default('')->comment('名称'); - $table->decimal('amount', 10)->default(0.00)->comment('金额'); - $table->boolean('is_indirect')->default(0)->comment('间接计算出'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_goods_discount` comment'订单--商品优惠记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_goods_discount')) { - Schema::drop('yz_order_goods_discount'); - } - } - -} diff --git a/database/migrations/2017_08_17_141207_create_ims_yz_order_goods_expansion_table.php b/database/migrations/2017_08_17_141207_create_ims_yz_order_goods_expansion_table.php deleted file mode 100644 index a97ac0c3..00000000 --- a/database/migrations/2017_08_17_141207_create_ims_yz_order_goods_expansion_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->string('key')->default(''); - $table->string('value')->default(''); - $table->integer('order_goods_id'); - $table->string('plugin_code', 50); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_goods_expansion comment '订单拓展表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_goods_expansion')) { - Schema::drop('yz_order_goods_expansion'); - } - } - -} diff --git a/database/migrations/2017_08_23_172816_add_plugin_id_to_ims_yz_goods_table.php b/database/migrations/2017_08_23_172816_add_plugin_id_to_ims_yz_goods_table.php deleted file mode 100644 index 3a80dceb..00000000 --- a/database/migrations/2017_08_23_172816_add_plugin_id_to_ims_yz_goods_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('plugin_id')->default(0); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods', function (Blueprint $table) { - $table->dropColumn('plugin_id'); - }); - } -} diff --git a/database/migrations/2017_08_25_160823_create_ims_yz_goods_div_from_table.php b/database/migrations/2017_08_25_160823_create_ims_yz_goods_div_from_table.php deleted file mode 100644 index d6c3a2d0..00000000 --- a/database/migrations/2017_08_25_160823_create_ims_yz_goods_div_from_table.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('goods_id'); - $table->boolean('status'); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_div_from')) { - Schema::drop('yz_goods_div_from'); - } - } - -} diff --git a/database/migrations/2017_09_04_133243_create_ims_yz_point_transfer_table.php b/database/migrations/2017_09_04_133243_create_ims_yz_point_transfer_table.php deleted file mode 100644 index 3a0612cf..00000000 --- a/database/migrations/2017_09_04_133243_create_ims_yz_point_transfer_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true)->comment('主键'); - $table->integer('uniacid')->nullable()->comment('公众号ID'); - $table->integer('transferor')->nullable()->comment('转让者'); - $table->integer('recipient')->nullable()->comment('被转让者'); - $table->decimal('value', 14)->nullable()->comment('转让值'); - $table->integer('created_at')->nullable()->comment('创建时间'); - $table->boolean('status')->nullable()->comment('-1失败,1成功'); - $table->integer('updated_at'); - $table->string('order_sn', 45); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_point_transfer` comment '积分--积分转让表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_point_transfer')) { - Schema::drop('yz_point_transfer'); - } - } - -} diff --git a/database/migrations/2017_09_05_163810_add_enabled_to_yz_options.php b/database/migrations/2017_09_05_163810_add_enabled_to_yz_options.php deleted file mode 100644 index 625c04ac..00000000 --- a/database/migrations/2017_09_05_163810_add_enabled_to_yz_options.php +++ /dev/null @@ -1,40 +0,0 @@ -boolean('enabled')->default(0); - } - if (!Schema::hasColumn('yz_options', 'uniacid')) { - $table->integer('uniacid')->default(0); - } - - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_05_182552_add_app_to_pay_type_yangming_table.php b/database/migrations/2017_09_05_182552_add_app_to_pay_type_yangming_table.php deleted file mode 100644 index e880d5bb..00000000 --- a/database/migrations/2017_09_05_182552_add_app_to_pay_type_yangming_table.php +++ /dev/null @@ -1,38 +0,0 @@ -count()) { - \app\common\models\PayType::insert(['name' => '微信App', 'code' => 'WechatApp', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'WechatApp')->update(['id' => 9]); - } - if (!\app\common\models\PayType::whereCode('AlipayApp')->count()) { - \app\common\models\PayType::insert(['name' => '支付宝App', 'code' => 'WechatApp', 'type' => 1, 'plugin_id' => 0, 'unit' => '元']); - \app\common\models\PayType::where('code', 'AlipayApp')->update(['id' => 10]); - } - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_13_144542_add_custom_and_validity_to_yzmember_table.php b/database/migrations/2017_09_13_144542_add_custom_and_validity_to_yzmember_table.php deleted file mode 100644 index 6cec4d04..00000000 --- a/database/migrations/2017_09_13_144542_add_custom_and_validity_to_yzmember_table.php +++ /dev/null @@ -1,45 +0,0 @@ -string('custom_value', 255)->nullable(); - } - if (!Schema::hasColumn('yz_member', 'validity')) { - $table->integer('validity')->nullable()->comment('等级有效期'); - } - }); - } - - if (\Schema::hasTable('yz_member_level')) { - Schema::table('yz_member_level', function (Blueprint $table) { - if (!Schema::hasColumn('yz_member_level', 'validity')) { - $table->integer('validity')->nullable()->comment('等级有效期'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_18_142739_update_field_content_to_yz_goods.php b/database/migrations/2017_09_18_142739_update_field_content_to_yz_goods.php deleted file mode 100644 index be2e31ca..00000000 --- a/database/migrations/2017_09_18_142739_update_field_content_to_yz_goods.php +++ /dev/null @@ -1,30 +0,0 @@ -getTablePrefix().'yz_goods` CHANGE `content` `content` LONGTEXT'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_18_162356_create_ims_yz_admin_operation_log_table.php b/database/migrations/2017_09_18_162356_create_ims_yz_admin_operation_log_table.php deleted file mode 100644 index d5bb7fc1..00000000 --- a/database/migrations/2017_09_18_162356_create_ims_yz_admin_operation_log_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('admin_uid')->nullable()->comment('管理员'); - $table->string('table_name', 50)->nullable()->comment('表名'); - $table->string('table_id', 50)->nullable()->comment('表名'); - $table->text('before', 65535)->nullable()->comment('改变前'); - $table->text('after', 65535)->nullable()->comment('改变后'); - $table->string('ip', 20)->nullable()->default('')->comment('操作者ip'); - $table->string('before_identify', 32)->nullable()->default('')->comment('修改前标识'); - $table->string('after_identify', 32)->nullable()->comment('修改后标识'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_operation_log comment '商城系统-管理员修改数据记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_admin_operation_log')) { - Schema::drop('yz_admin_operation_log'); - } - } - -} diff --git a/database/migrations/2017_09_20_152105_add_member_form_to_ims_yz_member.php b/database/migrations/2017_09_20_152105_add_member_form_to_ims_yz_member.php deleted file mode 100644 index 569cab72..00000000 --- a/database/migrations/2017_09_20_152105_add_member_form_to_ims_yz_member.php +++ /dev/null @@ -1,34 +0,0 @@ -text('member_form')->nullable()->comment('自定义表单'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member', function (Blueprint $table) { - $table->dropColumn('member_form'); - }); - } -} diff --git a/database/migrations/2017_09_22_165036_restructure_to_yz_goods_coupon_table.php b/database/migrations/2017_09_22_165036_restructure_to_yz_goods_coupon_table.php deleted file mode 100644 index e1098a01..00000000 --- a/database/migrations/2017_09_22_165036_restructure_to_yz_goods_coupon_table.php +++ /dev/null @@ -1,73 +0,0 @@ -renameColumn('is_coupon','is_give'); - }); - } - if (\Schema::hasColumn('yz_goods_coupon', 'coupon_id')) { - \Schema::table('yz_goods_coupon',function ($table) { - $table->text('coupon_id')->change(); - }); - } - if (\Schema::hasColumn('yz_goods_coupon', 'coupon_id')) { - \Schema::table('yz_goods_coupon',function ($table) { - $table->renameColumn('coupon_id','coupon'); - }); - } - if (\Schema::hasColumn('yz_goods_coupon', 'send_times')) { - \Schema::table('yz_goods_coupon',function ($table) { - $table->renameColumn('send_times','send_type'); - }); - } - - - DB::transaction(function() { - if (\Schema::hasColumns('yz_goods_coupon',['is_give','coupon','send_type'])) { - - $list = DB::table('yz_goods_coupon')->get(); - foreach ($list as $key => $item) { - - if (is_numeric($item['coupon'])) { - $couponModel = DB::table('yz_coupon')->where('id', $item['coupon'])->first(); - $coupon = json_encode([['coupon_id' => $item['coupon'], 'coupon_name' => $couponModel['name'], 'coupon_several' => 1]]); - - DB::table('yz_goods_coupon')->where('id', $item['id'])->update(['coupon' => $coupon]); - } - } - } - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_25_192336_add_field_to_yz_member.php b/database/migrations/2017_09_25_192336_add_field_to_yz_member.php deleted file mode 100644 index 5ac01b5e..00000000 --- a/database/migrations/2017_09_25_192336_add_field_to_yz_member.php +++ /dev/null @@ -1,40 +0,0 @@ -string('pay_password','45')->comment(' 商城支付密码'); - }); - } - if (!Schema::hasColumn('yz_member', 'salt')) { - Schema::table('yz_member', function (Blueprint $table) { - $table->string('salt','8')->comment('加密随机码'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_26_161953_add_comment_id_to_order_goods_table.php b/database/migrations/2017_09_26_161953_add_comment_id_to_order_goods_table.php deleted file mode 100644 index 768bc6f2..00000000 --- a/database/migrations/2017_09_26_161953_add_comment_id_to_order_goods_table.php +++ /dev/null @@ -1,32 +0,0 @@ -integer('comment_id')->nullable()->default(0); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_27_104605_create_ims_yz_order_setting_table.php b/database/migrations/2017_09_27_104605_create_ims_yz_order_setting_table.php deleted file mode 100644 index df03de3e..00000000 --- a/database/migrations/2017_09_27_104605_create_ims_yz_order_setting_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('order_id')->default(0); - $table->string('key', 50)->default('')->comment('键'); - $table->text('value', 65535)->comment('值'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_setting` comment'订单--创建时设置记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_setting')) { - Schema::drop('yz_order_setting'); - } - } - -} diff --git a/database/migrations/2017_09_27_151108_update_field_to_yz_member.php b/database/migrations/2017_09_27_151108_update_field_to_yz_member.php deleted file mode 100644 index af4c6c3e..00000000 --- a/database/migrations/2017_09_27_151108_update_field_to_yz_member.php +++ /dev/null @@ -1,40 +0,0 @@ -string('pay_password','45')->nullable()->change(); - }); - } - if (Schema::hasColumn('yz_member', 'salt')) { - Schema::table('yz_member', function ($table) { - $table->string('salt','8')->nullable()->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_09_29_160746_add_withdraw_mobile_to_yz_member.php b/database/migrations/2017_09_29_160746_add_withdraw_mobile_to_yz_member.php deleted file mode 100644 index 420105b6..00000000 --- a/database/migrations/2017_09_29_160746_add_withdraw_mobile_to_yz_member.php +++ /dev/null @@ -1,37 +0,0 @@ -string('withdraw_mobile','11')->nullable()->default('')->comment('提现手机号'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member', function (Blueprint $table) { - $table->dropColumn('withdraw_mobile'); - }); - } -} diff --git a/database/migrations/2017_09_29_172128_create_ims_yz_withdraw_set_log_table.php b/database/migrations/2017_09_29_172128_create_ims_yz_withdraw_set_log_table.php deleted file mode 100644 index a6d0e21b..00000000 --- a/database/migrations/2017_09_29_172128_create_ims_yz_withdraw_set_log_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('withdraw_id')->nullable()->comment('ID'); - $table->boolean('poundage_type')->nullable()->default(0)->comment('提现手续费类型 0比例计算 ,1固定金额,'); - $table->decimal('poundage', 14)->nullable()->comment('手续费 poundage_tpye为0,则为比例,为1则为固定金额,'); - $table->decimal('poundage_full_cut', 14)->nullable()->comment('满额减免手续费'); - $table->decimal('withdraw_fetter', 14)->nullable()->comment('提现限制,提现最小额'); - $table->string('remark', 200)->nullable()->default('')->comment('备注'); - $table->integer('created_at')->nullable()->comment('创建时间'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_withdraw_set_log comment '财务--余额提现手续费日志表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_withdraw_set_log'); - } - -} diff --git a/database/migrations/2017_09_29_181923_change_dispatch_type.php b/database/migrations/2017_09_29_181923_change_dispatch_type.php deleted file mode 100644 index fe16bb1e..00000000 --- a/database/migrations/2017_09_29_181923_change_dispatch_type.php +++ /dev/null @@ -1,44 +0,0 @@ -tinyInteger('need_send')->unsigned()->default(0); - }); - } - if (!\app\common\models\DispatchType::where('name','门店自提')->count()) { - \app\common\models\DispatchType::where('id','>','-1')->delete(); - \Illuminate\Support\Facades\DB::insert('INSERT INTO `'.app('db')->getTablePrefix().'yz_dispatch_type` (`id`, `name`, `plugin`, `need_send`) -VALUES - (1, \'快递\', 0, 1), - (2, \'门店自提\', 0, 0), - (3, \'门店配送\', 0, 1); -'); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_10_10_153038_create_ims_cron_job_table.php b/database/migrations/2017_10_10_153038_create_ims_cron_job_table.php deleted file mode 100644 index d6c37540..00000000 --- a/database/migrations/2017_10_10_153038_create_ims_cron_job_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->string('name'); - $table->text('return', 65535); - $table->float('runtime'); - $table->integer('cron_manager_id')->unsigned(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_cron_job'); - } - -} diff --git a/database/migrations/2017_10_10_153103_create_ims_cron_manager_table.php b/database/migrations/2017_10_10_153103_create_ims_cron_manager_table.php deleted file mode 100644 index 60079ade..00000000 --- a/database/migrations/2017_10_10_153103_create_ims_cron_manager_table.php +++ /dev/null @@ -1,35 +0,0 @@ -increments('id'); - $table->dateTime('rundate'); - $table->float('runtime'); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_cron_manager'); - } - -} diff --git a/database/migrations/2017_10_14_114327_add_plugin_id_to_order.php b/database/migrations/2017_10_14_114327_add_plugin_id_to_order.php deleted file mode 100644 index 86ec8f58..00000000 --- a/database/migrations/2017_10_14_114327_add_plugin_id_to_order.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('plugin_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('plugin_id'); - }); - } -} diff --git a/database/migrations/2017_10_17_184012_add_payment_amount_to_order_goods_table.php b/database/migrations/2017_10_17_184012_add_payment_amount_to_order_goods_table.php deleted file mode 100644 index adec98e0..00000000 --- a/database/migrations/2017_10_17_184012_add_payment_amount_to_order_goods_table.php +++ /dev/null @@ -1,50 +0,0 @@ -decimal('payment_amount', 10)->default(0.00); - } - if (!Schema::hasColumn('yz_order_goods', 'deduction_amount')) { - $table->decimal('deduction_amount', 10)->default(0.00); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_goods')) { - if (Schema::hasColumn('yz_order_goods', 'payment_amount')) { - Schema::table('yz_order_goods', function (Blueprint $table) { - $table->dropColumn('payment_amount'); - }); - } - if (Schema::hasColumn('yz_order_goods', 'deduction_amount')) { - - Schema::table('yz_order_goods', function (Blueprint $table) { - $table->dropColumn('deduction_amount'); - }); - } - } - } -} diff --git a/database/migrations/2017_10_17_194008_create_ims_yz_order_goods_deduction_table.php b/database/migrations/2017_10_17_194008_create_ims_yz_order_goods_deduction_table.php deleted file mode 100644 index fbf0b49a..00000000 --- a/database/migrations/2017_10_17_194008_create_ims_yz_order_goods_deduction_table.php +++ /dev/null @@ -1,52 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id'); - $table->integer('order_goods_id')->nullable(); - $table->string('code', 50)->default('')->comment('抵扣标识'); - $table->string('name', 100)->default('')->comment('抵扣名称'); - $table->decimal('usable_amount', 10)->default(0.00)->comment('可抵扣金额'); - $table->decimal('usable_coin', 10)->default(0.00)->comment('可抵扣数值'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->decimal('used_amount', 10)->default(0.00)->comment('实际抵扣数值'); - $table->decimal('used_coin', 10)->default(0.00)->comment('实际抵扣金额'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_goods_deduction` comment'订单--商品抵扣记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_goods_deduction')) { - - Schema::drop('yz_order_goods_deduction'); - } - } - -} diff --git a/database/migrations/2017_10_17_200205_create_ims_yz_deduction_table.php b/database/migrations/2017_10_17_200205_create_ims_yz_deduction_table.php deleted file mode 100644 index 71cceabf..00000000 --- a/database/migrations/2017_10_17_200205_create_ims_yz_deduction_table.php +++ /dev/null @@ -1,54 +0,0 @@ -connection->getTablePrefix() - Schema::create('yz_deduction', function (Blueprint $table) { - $table->increments('id'); - $table->string('code', 50)->default('')->comment('抵扣名称'); - $table->boolean('enable')->default(0)->comment('抵扣开启'); - $table->integer('created_at')->nullable(); - $table->integer('update_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::insert('INSERT INTO `'.app('db')->getTablePrefix().'yz_deduction` (`id`, `code`, `enable`, `created_at`, `update_at`, `deleted_at`) -VALUES - (1, \'love\', 1, NULL, NULL, NULL), - (2, \'point\', 1, NULL, NULL, NULL), - (3, \'coin\', 1, NULL, NULL, NULL); - -'); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_deduction comment '抵扣类型表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_deduction')) { - - Schema::drop('yz_deduction'); - } - } - -} diff --git a/database/migrations/2017_10_17_200951_create_ims_yz_virtual_coin_table.php b/database/migrations/2017_10_17_200951_create_ims_yz_virtual_coin_table.php deleted file mode 100644 index ec788b7a..00000000 --- a/database/migrations/2017_10_17_200951_create_ims_yz_virtual_coin_table.php +++ /dev/null @@ -1,52 +0,0 @@ -increments('id')->comment('虚拟币'); - $table->string('name', 50)->default('')->comment('名称'); - $table->string('code', 50)->default(''); - $table->decimal('exchange_rate', 10)->default(1.00)->comment('汇率'); - }); - } - if (Schema::hasTable('yz_virtual_coin')) { - - \Illuminate\Support\Facades\DB::update('TRUNCATE TABLE `' . app('db')->getTablePrefix() . 'yz_virtual_coin`'); - \Illuminate\Support\Facades\DB::insert('INSERT INTO `' . app('db')->getTablePrefix() . 'yz_virtual_coin' . '` (`id`, `name`, `code`, `exchange_rate`) -VALUES - (1, \'爱心值\', \'love\', 1.00), - (2, \'积分\', \'point\', 1.00), - (3, \'华侨币\', \'coin\', 1.00); - -'); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_virtual_coin')) { - - Schema::drop('yz_virtual_coin'); - } - } - -} diff --git a/database/migrations/2017_10_19_134334_add_source_member_id_to_credit_log_table.php b/database/migrations/2017_10_19_134334_add_source_member_id_to_credit_log_table.php deleted file mode 100644 index c97afe2d..00000000 --- a/database/migrations/2017_10_19_134334_add_source_member_id_to_credit_log_table.php +++ /dev/null @@ -1,28 +0,0 @@ -integer('uid')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_admin_operation_log')) { - if (Schema::hasColumn('yz_admin_operation_log', 'uid')) { - Schema::table('yz_admin_operation_log', function (Blueprint $table) { - $table->dropColumn('uid'); - }); - } - - } - } -} diff --git a/database/migrations/2017_10_23_161225_create_ims_yz_member_bank_card_table.php b/database/migrations/2017_10_23_161225_create_ims_yz_member_bank_card_table.php deleted file mode 100644 index d273f216..00000000 --- a/database/migrations/2017_10_23_161225_create_ims_yz_member_bank_card_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->comment('所属公众号'); - $table->integer('member_id')->comment('会员ID'); - $table->string('member_name', 45)->default('')->comment('真实项目'); - $table->string('bank_name', 45)->default('')->comment('开户行'); - $table->string('bank_card', 100)->default('')->comment('银行卡号'); - $table->boolean('is_default')->comment('是不是默认卡'); - $table->integer('created_at'); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_bank_card` comment '会员--银行卡信息表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_bank_card'); - } - -} diff --git a/database/migrations/2017_10_24_140051_fix_order_pay_id.php b/database/migrations/2017_10_24_140051_fix_order_pay_id.php deleted file mode 100644 index 71468ceb..00000000 --- a/database/migrations/2017_10_24_140051_fix_order_pay_id.php +++ /dev/null @@ -1,43 +0,0 @@ -',0)->where(function ($query){ - return $query->wherePayTypeId(0)->orWhere('order_pay_id',0); - })->get(); - $r->each(function($order){ - - $orderPay = OrderPay::where(['order_ids'=>'["'.$order->id.'"]'])->first(); - - if(isset($orderPay)){ - $order->pay_type_id = $orderPay->pay_type_id; - $order->order_pay_id = $orderPay->id; - $order->save(); - } - - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_10_24_221324_create_ims_yz_member_record_table.php b/database/migrations/2017_10_24_221324_create_ims_yz_member_record_table.php deleted file mode 100644 index 85dcb8fc..00000000 --- a/database/migrations/2017_10_24_221324_create_ims_yz_member_record_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('所属公众号'); - $table->integer('uid')->comment('会员ID'); - $table->integer('parent_id')->comment('会员上级ID'); - $table->integer('created_at'); - $table->integer('updated_at'); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_record` comment '会员--记录表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_record')) { - - Schema::drop('yz_member_record'); - } - } - -} diff --git a/database/migrations/2017_10_25_114950_add_field_to_yz_member_bank_card_table.php b/database/migrations/2017_10_25_114950_add_field_to_yz_member_bank_card_table.php deleted file mode 100644 index c45d6ff0..00000000 --- a/database/migrations/2017_10_25_114950_add_field_to_yz_member_bank_card_table.php +++ /dev/null @@ -1,48 +0,0 @@ -string('bank_province','45')->comment('开户省'); - }); - } - - if (!Schema::hasColumn('yz_member_bank_card', 'bank_city')) { - Schema::table('yz_member_bank_card', function (Blueprint $table) { - $table->string('bank_city','45')->comment('开户城市'); - }); - } - - if (!Schema::hasColumn('yz_member_bank_card', 'bank_branch')) { - Schema::table('yz_member_bank_card', function (Blueprint $table) { - $table->string('bank_branch','45')->comment('开户支行'); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_10_26_100716_add_field_manual_type_to_yz_withdraw_table.php b/database/migrations/2017_10_26_100716_add_field_manual_type_to_yz_withdraw_table.php deleted file mode 100644 index 2a8c1c03..00000000 --- a/database/migrations/2017_10_26_100716_add_field_manual_type_to_yz_withdraw_table.php +++ /dev/null @@ -1,35 +0,0 @@ -boolean('manual_type')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_10_26_103244_add_field_wechat_to_yz_member_table.php b/database/migrations/2017_10_26_103244_add_field_wechat_to_yz_member_table.php deleted file mode 100644 index 7669c14c..00000000 --- a/database/migrations/2017_10_26_103244_add_field_wechat_to_yz_member_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('wechat')->nullable()->comment('微信号码'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_11_01_135050_create_plugin_id_to_ims_yz_category_table.php b/database/migrations/2017_11_01_135050_create_plugin_id_to_ims_yz_category_table.php deleted file mode 100644 index 8fb026fa..00000000 --- a/database/migrations/2017_11_01_135050_create_plugin_id_to_ims_yz_category_table.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('plugin_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_category', function (Blueprint $table) { - $table->dropColumn('plugin_id'); - }); - } -} diff --git a/database/migrations/2017_11_03_102200_remake_pay_type.php b/database/migrations/2017_11_03_102200_remake_pay_type.php deleted file mode 100644 index d90a5a5d..00000000 --- a/database/migrations/2017_11_03_102200_remake_pay_type.php +++ /dev/null @@ -1,57 +0,0 @@ -getTablePrefix().'yz_pay_type`'); - Schema::table('yz_pay_type', - function (Blueprint $table) { - if (!Schema::hasColumn('yz_pay_type', 'setting_key')) { - $table->string('setting_key')->nullable(); - } - if (!Schema::hasColumn('yz_pay_type', 'need_password')) { - $table->integer('need_password')->default(0); - } - }); - } - \Illuminate\Support\Facades\DB::insert('INSERT INTO `'.app('db')->getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) -VALUES - (1, \'微信\', \'wechatPay\', \'shop.pay.weixin\', 2, 0, \'元\', 1505785687, NULL, NULL, 0), - (2, \'支付宝\', \'alipay\', \'shop.pay.alipay\', 2, 0, \'元\', 1505785687, NULL, NULL, 0), - (3, \'余额\', \'balance\', \'shop.pay.credit\', 1, 0, \'元\', 1505785687, NULL, NULL, 1), - (4, \'金币\', \'gold\', \'\', 1, 0, \'金币\', 1505785687, NULL, NULL, 0), - (5, \'后台\', \'backend\', \'\', 1, 0, \'元\', 1505785688, NULL, NULL, 0), - (6, \'微信\', \'cloudPayWechat\', \'plugin.cloud_pay_set\', 2, 0, \'元\', 1505785688, NULL, NULL, 0), - (7, \'支付宝\', \'cloudPayAlipay\', \'\', 2, 0, \'元\', 1505785688, NULL, NULL, 0), - (8, \'现金\', \'cashPay\', \'\', 1, 0, \'元\', 1505785688, NULL, NULL, 0), - (9, \'微信\', \'wechatApp\', \'shop_app.pay.weixin\', 2, 0, \'元\', 1505785688, NULL, NULL, 0), - (10, \'支付宝\', \'alipayApp\', \'shop_app.pay.alipay\', 2, 0, \'元\', NULL, NULL, NULL, 0), - (11, \'门店\', \'store\', \'\', 1, 0, \'元\', NULL, NULL, NULL, 0), - (0, \'未支付\', \'unPay\', \'\', 0, 0, \'\', 1505785687, NULL, NULL, 0); - -'); - \Illuminate\Support\Facades\DB::update('UPDATE `'.app('db')->getTablePrefix().'yz_pay_type` SET `id`=0 WHERE `code` = \'unPay\''); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_11_09_150821_create_ims_yz_message_template_table.php b/database/migrations/2017_11_09_150821_create_ims_yz_message_template_table.php deleted file mode 100644 index 06032a70..00000000 --- a/database/migrations/2017_11_09_150821_create_ims_yz_message_template_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('title')->default('0')->comment('模板标题'); - $table->string('template_id')->default('')->comment('模板微信ID'); - $table->text('first', 65535)->nullable()->comment('模板名称'); - $table->string('first_color')->nullable()->comment('模板名称字体颜色'); - $table->text('data', 65535)->nullable()->comment('内容'); - $table->text('remark', 65535)->nullable()->comment('模板备注'); - $table->string('remark_color')->nullable()->comment('模板备注字体颜色'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_message_template comment '微信公众号信息模板表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_message_template'); - } - -} diff --git a/database/migrations/2017_11_10_154004_add_virtual_sales_to_ims_yz_goods_table.php b/database/migrations/2017_11_10_154004_add_virtual_sales_to_ims_yz_goods_table.php deleted file mode 100644 index bb577ff6..00000000 --- a/database/migrations/2017_11_10_154004_add_virtual_sales_to_ims_yz_goods_table.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('virtual_sales')->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods', function (Blueprint $table) { - $table->dropColumn('virtual_sales'); - }); - } -} diff --git a/database/migrations/2017_11_13_162143_add_yunpay_to_yz_pay_type.php b/database/migrations/2017_11_13_162143_add_yunpay_to_yz_pay_type.php deleted file mode 100644 index 9a4969a8..00000000 --- a/database/migrations/2017_11_13_162143_add_yunpay_to_yz_pay_type.php +++ /dev/null @@ -1,33 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) -VALUES - (12, \'芸\', \'yunPayWechat\', \'plugin.yun_pay_set\', 2, 0, \'元\', 1505785687, NULL, NULL, 0) -'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_11_15_135050_create_uuid_to_ims_yz_member_wechat_table.php b/database/migrations/2017_11_15_135050_create_uuid_to_ims_yz_member_wechat_table.php deleted file mode 100644 index bbef620f..00000000 --- a/database/migrations/2017_11_15_135050_create_uuid_to_ims_yz_member_wechat_table.php +++ /dev/null @@ -1,38 +0,0 @@ -string('uuid','50')->nullable()->default(''); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member_wechat', function (Blueprint $table) { - $table->dropColumn('uuid'); - }); - } -} diff --git a/database/migrations/2017_11_23_153451_create_ims_yz_point_love_set_table.php b/database/migrations/2017_11_23_153451_create_ims_yz_point_love_set_table.php deleted file mode 100644 index ccbeb8d9..00000000 --- a/database/migrations/2017_11_23_153451_create_ims_yz_point_love_set_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->comment('所属公众号'); - $table->integer('member_id'); - $table->string('rate')->default(''); - $table->integer('created_at'); - $table->string('updated_at', 45); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_point_love_set` comment '积分--积分自动转入设置'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_point_love_set'); - } - -} diff --git a/database/migrations/2017_11_30_153224_update_text_yz_pay_type.php b/database/migrations/2017_11_30_153224_update_text_yz_pay_type.php deleted file mode 100644 index 6b69c70c..00000000 --- a/database/migrations/2017_11_30_153224_update_text_yz_pay_type.php +++ /dev/null @@ -1,31 +0,0 @@ -getTablePrefix().'yz_pay_type'.'` SET `name` = "微信-YZ" -WHERE `id` = 12'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_12_06_085438_create_ims_yz_balance_recharge_activity_table.php b/database/migrations/2017_12_06_085438_create_ims_yz_balance_recharge_activity_table.php deleted file mode 100644 index 994dfc2a..00000000 --- a/database/migrations/2017_12_06_085438_create_ims_yz_balance_recharge_activity_table.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id')->comment('参与会员ID'); - $table->integer('activity_id')->comment('活动ID'); - $table->integer('partake_count')->comment('参与次数');; - $table->integer('created_at'); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_balance_recharge_activity comment '财务--充值活动记录表'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_balance_recharge_activity'); - } - -} diff --git a/database/migrations/2017_12_14_174340_add_is_push_to_yz_goods_sale_table.php b/database/migrations/2017_12_14_174340_add_is_push_to_yz_goods_sale_table.php deleted file mode 100644 index 722f410b..00000000 --- a/database/migrations/2017_12_14_174340_add_is_push_to_yz_goods_sale_table.php +++ /dev/null @@ -1,45 +0,0 @@ -tinyInteger('is_push')->default(0); - }); - } - - if (!Schema::hasColumn('yz_goods_sale', 'push_goods_ids')) { - Schema::table('yz_goods_sale', function ($table) { - $table->string('push_goods_ids','1000')->nullable(); - }); - } - - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2017_12_15_145350_create_ims_yz_member_address_table.php b/database/migrations/2017_12_15_145350_create_ims_yz_member_address_table.php deleted file mode 100644 index dc86b40f..00000000 --- a/database/migrations/2017_12_15_145350_create_ims_yz_member_address_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->unsigned()->index('idx_uinacid'); - $table->integer('uid')->unsigned()->index('idx_uid'); - $table->string('username', 20)->comment('用户名称'); - $table->string('mobile', 11)->comment('手机号'); - $table->string('zipcode', 6)->comment('邮政编码'); - $table->string('province', 32)->comment('省'); - $table->string('city', 32)->comment('市'); - $table->string('district', 32)->comment('区'); - $table->string('street', 32)->comment('街道'); - $table->string('address', 512)->comment('详细地址'); - $table->boolean('isdefault')->comment('是否默认'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_address` comment '会员--地址表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('ims_yz_member_address')) { - Schema::drop('ims_yz_member_address'); - } - } -} diff --git a/database/migrations/2017_12_15_154004_add_street_to_ims_yz_order_address.php b/database/migrations/2017_12_15_154004_add_street_to_ims_yz_order_address.php deleted file mode 100644 index 048337a1..00000000 --- a/database/migrations/2017_12_15_154004_add_street_to_ims_yz_order_address.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('street_id')->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order_address', function (Blueprint $table) { - $table->dropColumn('street_id'); - }); - } -} diff --git a/database/migrations/2018_01_04_105037_create_failed_jobs_table.php b/database/migrations/2018_01_04_105037_create_failed_jobs_table.php deleted file mode 100644 index 3b8cc792..00000000 --- a/database/migrations/2018_01_04_105037_create_failed_jobs_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->text('connection'); - $table->text('queue'); - $table->longText('payload'); - $table->longText('exception'); - $table->timestamp('failed_at')->useCurrent(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('failed_jobs'); - } -} diff --git a/database/migrations/2018_01_05_103916_create_ims_yz_exhelper_senduser_table.php b/database/migrations/2018_01_05_103916_create_ims_yz_exhelper_senduser_table.php deleted file mode 100644 index 8b9a110b..00000000 --- a/database/migrations/2018_01_05_103916_create_ims_yz_exhelper_senduser_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('sender_name')->nullable(); - $table->string('sender_tel')->nullable(); - $table->string('sender_sign')->nullable(); - $table->integer('sender_code')->nullable(); - $table->string('sender_address')->nullable(); - $table->string('sender_city')->nullable(); - $table->boolean('isdefault')->default(0); - $table->integer('uid')->default(0); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_senduser'); - } - -} diff --git a/database/migrations/2018_01_15_151038_add_another_to_yz_pay_type_table.php b/database/migrations/2018_01_15_151038_add_another_to_yz_pay_type_table.php deleted file mode 100644 index 40ad374d..00000000 --- a/database/migrations/2018_01_15_151038_add_another_to_yz_pay_type_table.php +++ /dev/null @@ -1,33 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) -VALUES - (14, \'找人代付\', \'anotherPay\', \'shop.pay.another\', 2, 0, \'元\', 1505785687, NULL, NULL, 0) -'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_01_18_154451_add_field_award_balance_to_yz_goods_sale.php b/database/migrations/2018_01_18_154451_add_field_award_balance_to_yz_goods_sale.php deleted file mode 100644 index 8390c721..00000000 --- a/database/migrations/2018_01_18_154451_add_field_award_balance_to_yz_goods_sale.php +++ /dev/null @@ -1,37 +0,0 @@ -string('award_balance', 255)->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_02_26_111420_add_interests_rules_to_yz_member_level.php b/database/migrations/2018_02_26_111420_add_interests_rules_to_yz_member_level.php deleted file mode 100644 index 356f0e0a..00000000 --- a/database/migrations/2018_02_26_111420_add_interests_rules_to_yz_member_level.php +++ /dev/null @@ -1,40 +0,0 @@ -string('freight_reduction', 45)->nullable()->comment('运费减免'); - } - if (!Schema::hasColumn('yz_member_level', - 'interests_rules')) { - $table->text('interests_rules', 65535)->nullable()->comment('会员权益细则'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_03_13_115937_update_field_poundage_rate_to_yz_withdraw.php b/database/migrations/2018_03_13_115937_update_field_poundage_rate_to_yz_withdraw.php deleted file mode 100644 index 9e1b14f8..00000000 --- a/database/migrations/2018_03_13_115937_update_field_poundage_rate_to_yz_withdraw.php +++ /dev/null @@ -1,33 +0,0 @@ -decimal('poundage_rate',11)->change(); - $table->decimal('servicetax_rate',11)->change(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_03_26_165632_create_yz_search_filtering_table.php b/database/migrations/2018_03_26_165632_create_yz_search_filtering_table.php deleted file mode 100644 index d81166b0..00000000 --- a/database/migrations/2018_03_26_165632_create_yz_search_filtering_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->string('name', 50)->nullable()->comment('过滤名称'); - $table->integer('parent_id')->nullable()->default(0); - $table->string('value')->unllable()->default(0)->comment('值'); - $table->integer('grade')->unllable()->default(0)->comment('等级'); - $table->tinyInteger('is_show')->unllable()->default(0); - - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_search_filtering` comment'商品--商品标签表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_search_filtering'); - } -} diff --git a/database/migrations/2018_03_28_154624_create_yz_goods_limitbuy_table.php b/database/migrations/2018_03_28_154624_create_yz_goods_limitbuy_table.php deleted file mode 100644 index bbabd24e..00000000 --- a/database/migrations/2018_03_28_154624_create_yz_goods_limitbuy_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true);//自增:设置第二个参数为true - $table->integer('uniacid'); - $table->integer('goods_id'); - $table->tinyInteger('status')->default(0); - $table->integer('start_time'); - $table->integer('end_time'); - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ims_yz_goods_limitbuy'); - //dropIfExists()判断表是否存在,如果存在则删除 - } -} diff --git a/database/migrations/2018_03_29_170942_create_yz_goods_filtering_table.php b/database/migrations/2018_03_29_170942_create_yz_goods_filtering_table.php deleted file mode 100644 index 7b855543..00000000 --- a/database/migrations/2018_03_29_170942_create_yz_goods_filtering_table.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('id', true); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goods'); - $table->integer('filtering_id')->nullable()->default(0)->comment('过滤id'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_goods_filtering` comment'商品--标签关联表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_04_09_152739_add_ims_yz_goods_privilege_table.php b/database/migrations/2018_04_09_152739_add_ims_yz_goods_privilege_table.php deleted file mode 100644 index f9a23dbe..00000000 --- a/database/migrations/2018_04_09_152739_add_ims_yz_goods_privilege_table.php +++ /dev/null @@ -1,46 +0,0 @@ -integer('day_buy_limit')->nullable()->default(0); - } - - if (!Schema::hasColumn('yz_goods_privilege', 'week_buy_limit')) { - $table->integer('week_buy_limit')->nullable()->default(0); - } - - if (!Schema::hasColumn('yz_goods_privilege', 'month_buy_limit')) { - $table->integer('month_buy_limit')->nullable()->default(0); - } - - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_privilege'); - } - -} diff --git a/database/migrations/2018_04_10_141936_add_mark_to_yz_order.php b/database/migrations/2018_04_10_141936_add_mark_to_yz_order.php deleted file mode 100644 index b3c32a31..00000000 --- a/database/migrations/2018_04_10_141936_add_mark_to_yz_order.php +++ /dev/null @@ -1,38 +0,0 @@ -string('mark', 100)->nullable()->default('')->comment('柜子标识'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('mark'); - }); - } - } -} diff --git a/database/migrations/2018_04_23_103334_change_become_moneycount_to_member_relation_table.php b/database/migrations/2018_04_23_103334_change_become_moneycount_to_member_relation_table.php deleted file mode 100644 index f025a05c..00000000 --- a/database/migrations/2018_04_23_103334_change_become_moneycount_to_member_relation_table.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('become_moneycount', 15, 2)->nullable()->default(0.00)->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_relation'); - } -} diff --git a/database/migrations/2018_04_25_100305_add_is_recommend_and_desc_to_yz_brand_table.php b/database/migrations/2018_04_25_100305_add_is_recommend_and_desc_to_yz_brand_table.php deleted file mode 100644 index 86ac824e..00000000 --- a/database/migrations/2018_04_25_100305_add_is_recommend_and_desc_to_yz_brand_table.php +++ /dev/null @@ -1,45 +0,0 @@ -tinyInteger('is_recommend')->unllable()->default(0)->commet('是否推荐 0:否 1:是'); - - } - - if (Schema::hasColumn('yz_brand', 'desc')) { - $table->text('desc', 65535)->nullable()->change(); - } else { - $table->text('desc', 65535)->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_brand')) { - Schema::table('yz_brand', function (Blueprint $table) { - $table->dropColumn('is_recommend'); - }); - } - } -} diff --git a/database/migrations/2018_04_27_102921_create_yz_adv_table.php b/database/migrations/2018_04_27_102921_create_yz_adv_table.php deleted file mode 100644 index 05a0ab02..00000000 --- a/database/migrations/2018_04_27_102921_create_yz_adv_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->text('advs', 65535)->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_adv comment '设置-商城广告表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_adv'); - } -} diff --git a/database/migrations/2018_04_28_133828_create_ims_yz_goods_return_address_table.php b/database/migrations/2018_04_28_133828_create_ims_yz_goods_return_address_table.php deleted file mode 100644 index 20c35e91..00000000 --- a/database/migrations/2018_04_28_133828_create_ims_yz_goods_return_address_table.php +++ /dev/null @@ -1,55 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->string('address_name' ,32)->nullable(); - $table->string('contact', 20); - $table->string('mobile', 11); - $table->string('telephone', 11); - $table->integer('province_id'); - $table->string('province_name', 32); - $table->integer('city_id'); - $table->string('city_name', 32); - $table->integer('district_id'); - $table->string('district_name', 32); - $table->integer('street_id')->nullable(); - $table->string('street_name', 32)->nullable(); - $table->string('address', 512); - $table->integer('plugins_id')->default(0); - $table->integer('store_id')->default(0); - $table->integer('supplier_id')->default(0); - $table->boolean('is_default')->default(0); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('ims_yz_goods_return_address')) { - - Schema::drop('ims_yz_goods_return_address'); - } - } -} diff --git a/database/migrations/2018_05_07_150312_add_is_complex_to_yz_coupon.php b/database/migrations/2018_05_07_150312_add_is_complex_to_yz_coupon.php deleted file mode 100644 index 2dbcd453..00000000 --- a/database/migrations/2018_05_07_150312_add_is_complex_to_yz_coupon.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('is_complex')->default(0); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_05_10_093057_update_thumb_to_yz_goods_option.php b/database/migrations/2018_05_10_093057_update_thumb_to_yz_goods_option.php deleted file mode 100644 index c793caa2..00000000 --- a/database/migrations/2018_05_10_093057_update_thumb_to_yz_goods_option.php +++ /dev/null @@ -1,34 +0,0 @@ -string('thumb', 255)->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_05_16_090439_add_filter_ids_to_yz_category.php b/database/migrations/2018_05_16_090439_add_filter_ids_to_yz_category.php deleted file mode 100644 index d1a4b485..00000000 --- a/database/migrations/2018_05_16_090439_add_filter_ids_to_yz_category.php +++ /dev/null @@ -1,34 +0,0 @@ -string('filter_ids', 255)->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_05_17_104914_add_top_show_to_options_table.php b/database/migrations/2018_05_17_104914_add_top_show_to_options_table.php deleted file mode 100644 index 6df91037..00000000 --- a/database/migrations/2018_05_17_104914_add_top_show_to_options_table.php +++ /dev/null @@ -1,35 +0,0 @@ -boolean('top_show')->default(0)->comment('是否置顶1是0否'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_options'); - } -} diff --git a/database/migrations/2018_05_19_172742_add_yz_openid_to_yz_member.php b/database/migrations/2018_05_19_172742_add_yz_openid_to_yz_member.php deleted file mode 100644 index 54d17c76..00000000 --- a/database/migrations/2018_05_19_172742_add_yz_openid_to_yz_member.php +++ /dev/null @@ -1,38 +0,0 @@ -string('yz_openid', 50)->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member')) { - Schema::table('yz_member', function (Blueprint $table) { - $table->dropColumn('yz_openid'); - }); - } - } -} diff --git a/database/migrations/2018_05_22_100539_create_yz_template_message_default_table.php b/database/migrations/2018_05_22_100539_create_yz_template_message_default_table.php deleted file mode 100644 index 5dbd0746..00000000 --- a/database/migrations/2018_05_22_100539_create_yz_template_message_default_table.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('template_id')->nullable()->comment('模板id'); - $table->string('template_id_short')->nullable()->comment('模板编号'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_template_message_default comment '微信模板消息--微信模板记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_template_message_default'); - } -} diff --git a/database/migrations/2018_05_22_104148_create_yz_goods_service_table.php b/database/migrations/2018_05_22_104148_create_yz_goods_service_table.php deleted file mode 100644 index d6bf6f0a..00000000 --- a/database/migrations/2018_05_22_104148_create_yz_goods_service_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goods'); - $table->tinyInteger('is_automatic')->comment('自动上下架 1:是')->default(0); - $table->integer('on_shelf_time')->nullable(); - $table->integer('lower_shelf_time')->nullable(); - $table->tinyInteger('is_refund')->nullable()->default(1)->comment('是否支持退货 1:是'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_service comment '商品自动上下架设置表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_service'); - - } -} diff --git a/database/migrations/2018_05_22_115532_add_is_default_and_notice_type_to_message_template.php b/database/migrations/2018_05_22_115532_add_is_default_and_notice_type_to_message_template.php deleted file mode 100644 index 4d7e4875..00000000 --- a/database/migrations/2018_05_22_115532_add_is_default_and_notice_type_to_message_template.php +++ /dev/null @@ -1,35 +0,0 @@ -tinyInteger('is_default')->default(0); - $table->string('notice_type')->default(0); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_05_28_140403_delete_order_discount.php b/database/migrations/2018_05_28_140403_delete_order_discount.php deleted file mode 100644 index d9edd279..00000000 --- a/database/migrations/2018_05_28_140403_delete_order_discount.php +++ /dev/null @@ -1,29 +0,0 @@ -delete(); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_06_08_103334_a_change_pay_time_to_order_pay_table.php b/database/migrations/2018_06_08_103334_a_change_pay_time_to_order_pay_table.php deleted file mode 100644 index 2f760543..00000000 --- a/database/migrations/2018_06_08_103334_a_change_pay_time_to_order_pay_table.php +++ /dev/null @@ -1,36 +0,0 @@ -getTablePrefix().$table->getTable()."` CHANGE `refund_time` `refund_time` INT(11) NULL DEFAULT NULL"); - \Illuminate\Support\Facades\DB::update("ALTER TABLE `".app('db')->getTablePrefix().$table->getTable()."` CHANGE `pay_time` `pay_time` INT(11) NULL DEFAULT NULL"); - - }); - - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_pay set refund_time = null where refund_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_pay set pay_time = null where pay_time = 0'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2018_06_12_140403_create_status_flow_table.php b/database/migrations/2018_06_12_140403_create_status_flow_table.php deleted file mode 100644 index bd06860d..00000000 --- a/database/migrations/2018_06_12_140403_create_status_flow_table.php +++ /dev/null @@ -1,122 +0,0 @@ -tinyInteger('is_pending')->default(0); - } - }); - } - if (!Schema::hasTable('yz_flow')) { - Schema::create('yz_flow', function (Blueprint $table) { - $table->integer('id', true); - $table->string('name'); - $table->string('code'); - $table->integer('plugin_id')->default(0);; - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - if (!Schema::hasTable('yz_status')) { - Schema::create('yz_status', function (Blueprint $table) { - $table->integer('id', true); - $table->integer('flow_id'); - $table->string('name'); - $table->string('code')->nullable(); - $table->integer('order'); - - $table->integer('plugin_id')->default(0);; - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); -// $table->foreign('flow_id') -// ->references('id') -// ->on('yz_flow') -// ->onDelete('cascade'); - }); - } - - if (!Schema::hasTable('yz_process')) { - Schema::create('yz_process', function (Blueprint $table) { - $table->integer('id', true); - $table->integer('uid')->nullable(); - $table->integer('model_id'); - $table->string('model_type'); - $table->integer('flow_id'); - $table->integer('status_id'); - $table->enum('state', ['processing', 'completed', 'canceled']); - $table->tinyInteger('is_pending')->default(0); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - -// $table->foreign('flow_id') -// ->references('id') -// ->on((new \app\common\models\Flow())->getTable()) -// ->onDelete('cascade'); -// $table->foreign('status_id') -// ->references('id') -// ->on((new \app\common\models\Status)->getTable()) -// ->onDelete('cascade'); - }); - } - - if (!Schema::hasTable('yz_remittance_record')) { - Schema::create('yz_remittance_record', function(Blueprint $table) { - $table->integer('id', true); - $table->integer('uid'); - $table->integer('order_pay_id'); - $table->text('report_url')->nullable(); - $table->string('card_no')->nullable(); - $table->string('bank_name')->nullable(); - $table->decimal('amount')->nullable(); - $table->text('note')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); -// $table->foreign('order_pay_id') -// ->references('id') -// ->on((new \app\common\models\OrderPay)->getTable()) -// ->onDelete('cascade'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_remittance_record')) { - Schema::dropIfExists('yz_remittance_record'); - } - if (Schema::hasTable('yz_process')) { - Schema::dropIfExists('yz_process'); - } - if (Schema::hasTable('yz_status')) { - Schema::dropIfExists('yz_status'); - } - if (Schema::hasTable('yz_flow')) { - Schema::dropIfExists('yz_flow'); - } - - - } -} diff --git a/database/migrations/2018_06_13_140403_add_data_to_status_flow_table.php b/database/migrations/2018_06_13_140403_add_data_to_status_flow_table.php deleted file mode 100644 index af6b73f2..00000000 --- a/database/migrations/2018_06_13_140403_add_data_to_status_flow_table.php +++ /dev/null @@ -1,99 +0,0 @@ -remittance(); - } - - private function remittance() - { - /** - * @var Flow $flow - */ - $flow = \app\common\models\Flow::create([ - 'name' => '邮局汇款', - 'code' => 'remittance', - ]); - $flow->pushManyStatus([ - [ - 'code' => 'waitRemittance', - 'name' => '待汇款', - 'order' => 0, - - ], [ - 'name' => '待收款', - 'code' => 'waitReceipt', - 'order' => 10, - ], [ - 'name' => '已完成', - 'code' => 'completed', - 'order' => 20, - - ], [ - 'name' => '已取消', - 'code' => 'canceled', - 'order' => -1, - - ], [ - 'name' => '已关闭', - 'code' => 'closed', - 'order' => -2, - - ], - ]); - /** - * @var Flow $flow - */ - $flow = \app\common\models\Flow::create([ - 'name' => '邮局转账审核', - 'code' => 'remittanceAudit', - ]); - $flow->pushManyStatus([ - [ - 'code' => 'waitAudit', - 'name' => '待审核', - 'order' => 0, - - ], [ - 'name' => '已通过', - 'code' => 'passed', - 'order' => 10, - - ], [ - 'name' => '已取消', - 'code' => 'canceled', - 'order' => -1, - - ], [ - 'name' => '已拒绝', - 'code' => 'refused', - 'order' => -2, - - ], - ]); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2018_06_18_140403_add_remittance_audit_to_status_flow_table.php b/database/migrations/2018_06_18_140403_add_remittance_audit_to_status_flow_table.php deleted file mode 100644 index 7259c459..00000000 --- a/database/migrations/2018_06_18_140403_add_remittance_audit_to_status_flow_table.php +++ /dev/null @@ -1,66 +0,0 @@ -audit(); - } - - private function audit() - { - /** - * @var Flow $flow - */ - $flow = \app\common\models\Flow::create([ - 'name' => '转账审核', - 'code' => 'remittanceAudit', - ]); - $flow->pushManyStatus([ - [ - 'name' => '待审核', - 'code' => 'waitAudit', - 'order' => 0 - ], - [ - 'name' => '已通过', - 'code' => 'passed', - 'order' => 1 - ], - [ - 'name' => '已取消', - 'code' => 'canceled', - 'order' => -1 - ], - [ - 'name' => '已拒绝', - 'code' => 'refused', - 'order' => -2 - ], - ] - ); - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2018_06_26_140403_add_data_to_pay_type_table.php b/database/migrations/2018_06_26_140403_add_data_to_pay_type_table.php deleted file mode 100644 index f6bb3c8a..00000000 --- a/database/migrations/2018_06_26_140403_add_data_to_pay_type_table.php +++ /dev/null @@ -1,54 +0,0 @@ - 16, - 'name' =>'汇款支付', - 'plugin_id' =>0, - 'code' =>'remittance', - 'type' =>1, - 'unit' =>'元', - 'setting_key' =>'shop.pay.remittance', - ]); - } - if(!\app\common\models\PayType::find(17)) { - - \app\common\models\PayType::insert([ - 'id' => 17, - 'name' => '货到付款', - 'plugin_id' => 0, - 'code' => 'COD', - 'type' => 1, - 'unit' => '元', - 'setting_key' => 'shop.pay.cod', - ]); - } - } - } - - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2018_06_27_140403_add_note_to_process_table.php b/database/migrations/2018_06_27_140403_add_note_to_process_table.php deleted file mode 100644 index 669d602f..00000000 --- a/database/migrations/2018_06_27_140403_add_note_to_process_table.php +++ /dev/null @@ -1,37 +0,0 @@ -text('note')->nullable(); - }); - } - } - } - - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2018_06_29_094047_update_telephone_to_goods_return_address.php b/database/migrations/2018_06_29_094047_update_telephone_to_goods_return_address.php deleted file mode 100644 index ece64d26..00000000 --- a/database/migrations/2018_06_29_094047_update_telephone_to_goods_return_address.php +++ /dev/null @@ -1,38 +0,0 @@ -string('telephone', 50)->nullable()->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_return_address')) { - Schema::table('yz_goods_return_address', function (Blueprint $table) { - $table->dropColumn('telephone'); - }); - } - } -} diff --git a/database/migrations/2018_06_29_140403_add_is_pending_to_order_table.php b/database/migrations/2018_06_29_140403_add_is_pending_to_order_table.php deleted file mode 100644 index 1b2def49..00000000 --- a/database/migrations/2018_06_29_140403_add_is_pending_to_order_table.php +++ /dev/null @@ -1,41 +0,0 @@ -tinyInteger('is_pending')->default(0); - }); - } - } - } - - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order')) { - if (Schema::hasColumn('yz_order', 'is_pending')) { - Schema::table('yz_order', function (\Illuminate\Database\Schema\Blueprint $table) { - $table->dropColumn('is_pending'); - }); - } - } - } -} diff --git a/database/migrations/2018_06_29_140403_create_order_pending.php b/database/migrations/2018_06_29_140403_create_order_pending.php deleted file mode 100644 index d5a31e15..00000000 --- a/database/migrations/2018_06_29_140403_create_order_pending.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('order_id')->index('idx_order_id'); - $table->integer('model_id')->index('idx_model_id'); - $table->string('model_type'); - $table->string('note'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_pending')) { - Schema::dropIfExists('yz_order_pending'); - - } - } -} diff --git a/database/migrations/2018_06_6_140403_create_order_pay_order.php b/database/migrations/2018_06_6_140403_create_order_pay_order.php deleted file mode 100644 index c8da7741..00000000 --- a/database/migrations/2018_06_6_140403_create_order_pay_order.php +++ /dev/null @@ -1,54 +0,0 @@ -integer('id', true); - $table->integer('order_id')->index('idx_order_id'); - $table->integer('order_pay_id')->index('idx_order_pay_id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_pay_order` comment'订单--支付流水与订单中间表'");//表注释 - - \app\common\models\OrderPay::get()->each(function(\app\common\models\OrderPay $orderPay){ - foreach ($orderPay->order_ids as $order_id){ - - $a= new \app\common\models\OrderPayOrder([ - 'order_pay_id'=>$orderPay->id, - 'order_id'=>$order_id - ]); - $a->save(); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_pay_order')) { - Schema::dropIfExists('yz_order_pay_order'); - - } - } -} diff --git a/database/migrations/2018_07_04_115431_add_owner_id_to_yz_member_history.php b/database/migrations/2018_07_04_115431_add_owner_id_to_yz_member_history.php deleted file mode 100644 index 485393ec..00000000 --- a/database/migrations/2018_07_04_115431_add_owner_id_to_yz_member_history.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('owner_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_history')) { - Schema::table('yz_member_history', function (Blueprint $table) { - $table->dropColumn('owner_id'); - }); - } - } -} diff --git a/database/migrations/2018_07_23_115550_add_field_to_yz_member_relation.php b/database/migrations/2018_07_23_115550_add_field_to_yz_member_relation.php deleted file mode 100644 index f64eb182..00000000 --- a/database/migrations/2018_07_23_115550_add_field_to_yz_member_relation.php +++ /dev/null @@ -1,34 +0,0 @@ -boolean('share_page')->default(1); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_07_24_103357_repair_data_to_yz_withdraw.php b/database/migrations/2018_07_24_103357_repair_data_to_yz_withdraw.php deleted file mode 100644 index cdb9baba..00000000 --- a/database/migrations/2018_07_24_103357_repair_data_to_yz_withdraw.php +++ /dev/null @@ -1,31 +0,0 @@ -update(['type' => $right_parameter]); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_order_statistics_table.php b/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_order_statistics_table.php deleted file mode 100644 index 77170e5c..00000000 --- a/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_order_statistics_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->default(0)->comment('会员ID'); - $table->integer('first_order_quantity')->default(0)->comment('一级下线订单总数'); - $table->decimal('first_order_amount', 10)->nullable()->default(0.00)->comment('一级下线订单总额'); - $table->integer('second_order_quantity')->default(0)->comment('二级下线订单总数'); - $table->decimal('second_order_amount', 10)->nullable()->default(0.00)->comment('二级下线订单总额'); - $table->integer('third_order_quantity')->default(0)->comment('三级下线订单总数'); - $table->decimal('third_order_amount', 10)->nullable()->default(0.00)->comment('三级下线订单总额'); -// $table->integer('first_scened_order_quantity')->default(0)->comment('一、二级下线订单总数'); -// $table->decimal('first_scened_order_amount', 10)->nullable()->default(0.00)->comment('一、二级下线订单总额'); -// $table->integer('first_scened_third_order_quantity')->default(0)->comment('一、二、三级下线订单总数'); -// $table->decimal('first_scened_third_order_amount', 10)->nullable()->default(0.00)->comment('一、二、三级下线订单总额'); - $table->integer('team_order_quantity')->default(0)->comment('团队订单总数'); - $table->decimal('team_order_amount', 10)->nullable()->default(0.00)->comment('团队订单总额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_relation_order_statistics'); - } - -} diff --git a/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_statistics_table.php b/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_statistics_table.php deleted file mode 100644 index 685ff2f8..00000000 --- a/database/migrations/2018_07_30_112806_create_ims_yz_member_relation_statistics_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->default(0)->comment('会员ID'); - $table->integer('first_total')->default(0)->comment('一级下线总数'); - $table->integer('second_total')->default(0)->comment('二级下线总数'); - $table->integer('third_total')->default(0)->comment('三级下线总数'); - $table->integer('team_total')->default(0)->comment('团队总人数'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_relation_statistics'); - } - -} diff --git a/database/migrations/2018_07_30_173303_create_yz_order_operation_tables.php b/database/migrations/2018_07_30_173303_create_yz_order_operation_tables.php deleted file mode 100644 index e4f5d02a..00000000 --- a/database/migrations/2018_07_30_173303_create_yz_order_operation_tables.php +++ /dev/null @@ -1,78 +0,0 @@ -integer('id', true); - $table->string('name'); - $table->string('code'); - $table->integer('sort'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - if (!Schema::hasTable('yz_member_order_operation')) { - Schema::create('yz_member_order_operation', function (Blueprint $table) { - $table->integer('id', true); - $table->integer('order_status_id'); - $table->string('name'); - $table->string('code'); - $table->string('value'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - $sql = 'SELECT count(1) FROM ' . app('db')->getTablePrefix() . 'yz_order_status'; - if (!\Illuminate\Support\Facades\DB::select($sql)) { - \Illuminate\Support\Facades\DB::insert('INSERT INTO `'.app('db')->getTablePrefix().'yz_order_status` (`id`, `name`, `code`, `sort`, `created_at`, `updated_at`, `deleted_at`) -VALUES - (1, \'待付款\', \'waitPay\', 0, NULL, NULL, NULL), - (2, \'待发货\', \'waitSend\', 0, NULL, NULL, NULL), - (3, \'待收货\', \'waitReceive\', 0, NULL, NULL, NULL), - (4, \'已完成\', \'complete\', 0, NULL, NULL, NULL), - (5, \'已关闭\', \'close\', 0, NULL, NULL, NULL); -'); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { -// if (Schema::hasTable('yz_member_type')) { -// Schema::dropIfExists('yz_member_type'); -// } - -// if (Schema::hasTable('yz_user_type')) { -// Schema::dropIfExists('yz_user_type'); -// } - if (Schema::hasTable('yz_order_status')) { - Schema::dropIfExists('yz_order_status'); - } -// if (Schema::hasTable('yz_order_user_operation')) { -// Schema::dropIfExists('yz_order_user_operation'); -// } - if (Schema::hasTable('yz_member_order_operation')) { - Schema::dropIfExists('yz_member_order_operation'); - } - } -} diff --git a/database/migrations/2018_08_02_091223_create_ims_yz_order_count_table.php b/database/migrations/2018_08_02_091223_create_ims_yz_order_count_table.php deleted file mode 100644 index 604fd0c0..00000000 --- a/database/migrations/2018_08_02_091223_create_ims_yz_order_count_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->default(0)->comment('会员ID'); - $table->integer('parent_id')->default(0)->comment('父ID'); - $table->integer('total_quantity')->default(0)->comment('订单总数量'); - $table->decimal('total_amount', 10)->nullable()->default(0.00)->comment('订单总金额'); - $table->integer('total_pay_quantity')->default(0)->comment('已支付订单总数量'); - $table->decimal('total_pay_amount', 10)->nullable()->default(0.00)->comment('已支付订单总金额'); - $table->integer('total_complete_quantity')->default(0)->comment('已完成订单总数量'); - $table->decimal('total_complete_amount', 10)->nullable()->default(0.00)->comment('已完成订单总金额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_count` comment'订单--会员统计记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_order_count'); - } -} diff --git a/database/migrations/2018_08_31_173303_update_cache.php b/database/migrations/2018_08_31_173303_update_cache.php deleted file mode 100644 index 1ff38cd9..00000000 --- a/database/migrations/2018_08_31_173303_update_cache.php +++ /dev/null @@ -1,28 +0,0 @@ -integer('plugin_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_cart')) { - if (Schema::hasColumn('yz_member_cart', 'plugin_id')) { - Schema::table('yz_member_cart', function (\Illuminate\Database\Schema\Blueprint $table) { - $table->dropColumn('plugin_id'); - }); - } - } - } -} diff --git a/database/migrations/2018_09_09_090305_modify_group_field_yz_setting.php b/database/migrations/2018_09_09_090305_modify_group_field_yz_setting.php deleted file mode 100644 index dbe6f841..00000000 --- a/database/migrations/2018_09_09_090305_modify_group_field_yz_setting.php +++ /dev/null @@ -1,34 +0,0 @@ -string('group', 100)->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_09_10_144727_add_index_to_yz_setting_table.php b/database/migrations/2018_09_10_144727_add_index_to_yz_setting_table.php deleted file mode 100644 index 9e1be8e1..00000000 --- a/database/migrations/2018_09_10_144727_add_index_to_yz_setting_table.php +++ /dev/null @@ -1,36 +0,0 @@ -getTablePrefix() . 'yz_setting where key_name="idx_group_uniacid"'); - - if (!$idx) { - \Illuminate\Support\Facades\DB::statement('alter table ' . app('db')->getTablePrefix() . 'yz_setting add index `idx_group_uniacid`(`group`, `uniacid`)'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_09_10_174544_add_field_uniacid_to_yz_process.php b/database/migrations/2018_09_10_174544_add_field_uniacid_to_yz_process.php deleted file mode 100644 index de553e2f..00000000 --- a/database/migrations/2018_09_10_174544_add_field_uniacid_to_yz_process.php +++ /dev/null @@ -1,56 +0,0 @@ -integer('uniacid')->default(0); - } - }); - } -/* - if (Schema::hasTable('yz_process')) { - Schema::table('yz_process', function (Blueprint $table) { - if (Schema::hasColumn('yz_process', 'uniacid')) { - //更新 uniacid 值 - $records = \app\common\models\Process::get(); - - if ($records->isEmpty()) { - return true; - } - foreach ($records as $key => $record) { - - $memberModel = \app\common\models\Member::whereUid($record->uid)->first(); - if($memberModel){ - $record->uniacid = $memberModel->uniacid; - $record->save(); - } - } - } - }); - } -*/ - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_09_12_091100_create_yz_goods_video_table.php b/database/migrations/2018_09_12_091100_create_yz_goods_video_table.php deleted file mode 100644 index 0bf8abd2..00000000 --- a/database/migrations/2018_09_12_091100_create_yz_goods_video_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('goods_id')->nullable()->default(0)->index('idx_goods'); - $table->string('goods_video', 255)->nullable()->default('')->comment('视频地址'); - $table->string('video_image', 200)->nullable()->default('')->comment('视频封面地址'); - $table->tinyInteger('status')->default(0)->comment('该字段已废弃'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_video comment '商品视频设置记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_video'); - } -} diff --git a/database/migrations/2018_09_13_141314_create_yz_member_del_log_table.php b/database/migrations/2018_09_13_141314_create_yz_member_del_log_table.php deleted file mode 100644 index 20151ad6..00000000 --- a/database/migrations/2018_09_13_141314_create_yz_member_del_log_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable()->default(0)->index('idx_uniacid'); - $table->integer('member_id')->default(0)->index('del_uid')->comment('被删除会员ID'); - $table->tinyInteger('type')->default(0); - $table->text('value', 65535); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_del_log comment '会员删除记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_del_log'); - } -} diff --git a/database/migrations/2018_09_17_173303_clear_cache.php b/database/migrations/2018_09_17_173303_clear_cache.php deleted file mode 100644 index 7737bb7e..00000000 --- a/database/migrations/2018_09_17_173303_clear_cache.php +++ /dev/null @@ -1,28 +0,0 @@ -increments('id'); - $table->integer('order_id')->default(0)->index('idx_order_id'); - $table->string('table_name', 100)->default(''); - $table->string('ids', 1000)->default(''); - $table->string('code', 100)->default('')->index('idx_code'); - $table->decimal('amount', 11)->default(0.00); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_plugin_bonus comment '订单--订单插件分红记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_plugin_bonus')) { - - Schema::drop('ims_yz_order_plugin_bonus'); - } - } - -} diff --git a/database/migrations/2018_09_27_142937_update_member_del_member_id.php b/database/migrations/2018_09_27_142937_update_member_del_member_id.php deleted file mode 100644 index c168c40b..00000000 --- a/database/migrations/2018_09_27_142937_update_member_del_member_id.php +++ /dev/null @@ -1,35 +0,0 @@ -dropColumn('member)id'); - $table->integer('member_id')->default(0)->index('del_uid'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_06_150312_add_status_to_yz_order_plugin_bonus.php b/database/migrations/2018_10_06_150312_add_status_to_yz_order_plugin_bonus.php deleted file mode 100644 index 83a4edd0..00000000 --- a/database/migrations/2018_10_06_150312_add_status_to_yz_order_plugin_bonus.php +++ /dev/null @@ -1,52 +0,0 @@ -string('content')->nullable(); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'status')) { - $table->tinyInteger('status')->default(0); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'undividend')) { - $table->decimal('undividend',14)->default(0.00); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'uniacid')) { - $table->integer('uniacid')->default(0); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'uniacid')) { - $table->string('order_sn')->nullable(); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'uniacid')) { - $table->decimal('price',14)->default(0.00); - } - if (!Schema::hasColumn('yz_order_plugin_bonus', 'uniacid')) { - $table->integer('member_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_12_163613_create_ims_yz_order_created_job_table.php b/database/migrations/2018_10_12_163613_create_ims_yz_order_created_job_table.php deleted file mode 100644 index d93ef2b7..00000000 --- a/database/migrations/2018_10_12_163613_create_ims_yz_order_created_job_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->enum('status', ['waiting','finished','failed']); - $table->integer('order_id')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_created_job` comment'订单--创建队列情况'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_created_job')) { - - Schema::drop('yz_order_created_job'); - } - } - -} diff --git a/database/migrations/2018_10_12_163613_create_ims_yz_order_paid_job_table.php b/database/migrations/2018_10_12_163613_create_ims_yz_order_paid_job_table.php deleted file mode 100644 index e34ac654..00000000 --- a/database/migrations/2018_10_12_163613_create_ims_yz_order_paid_job_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->enum('status', ['waiting','finished','failed']); - $table->integer('order_id')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_paid_job` comment'订单--支付队列情况'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_paid_job')) { - - Schema::drop('yz_order_paid_job'); - } - } - -} diff --git a/database/migrations/2018_10_12_163613_create_ims_yz_order_received_job_table.php b/database/migrations/2018_10_12_163613_create_ims_yz_order_received_job_table.php deleted file mode 100644 index 14076ba8..00000000 --- a/database/migrations/2018_10_12_163613_create_ims_yz_order_received_job_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->enum('status', ['waiting','finished','failed']); - $table->integer('order_id')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_received_job` comment'订单--完成队列情况'");//表注释 - - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_received_job')) { - - Schema::drop('yz_order_received_job'); - } - } - -} diff --git a/database/migrations/2018_10_15_104737_create_yz_advertisement_table.php b/database/migrations/2018_10_15_104737_create_yz_advertisement_table.php deleted file mode 100644 index ebae03c6..00000000 --- a/database/migrations/2018_10_15_104737_create_yz_advertisement_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->index('idx_uniacid'); - $table->string('name', 200)->default('')->nullable()->comment('标题'); - $table->string('thumb', 255)->default('')->nullable()->comment('图片'); - $table->string('adv_url')->default('')->nullable()->comment('广告链接'); - $table->integer('sort_by')->default(0)->nullable()->comment('排序'); - $table->tinyInteger('status')->default(0)->comment('0:不显示|1:显示'); - $table->string('extend', 255)->default(''); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_advertisement comment '财务-广告表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_advertisement'); - } -} diff --git a/database/migrations/2018_10_16_182135_add_field_to_yz_balance_recharge.php b/database/migrations/2018_10_16_182135_add_field_to_yz_balance_recharge.php deleted file mode 100644 index 83ce95d8..00000000 --- a/database/migrations/2018_10_16_182135_add_field_to_yz_balance_recharge.php +++ /dev/null @@ -1,34 +0,0 @@ -string('remark', 50)->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_18_110120_add_invite_code_to_yz_member.php b/database/migrations/2018_10_18_110120_add_invite_code_to_yz_member.php deleted file mode 100644 index 8e7c0d27..00000000 --- a/database/migrations/2018_10_18_110120_add_invite_code_to_yz_member.php +++ /dev/null @@ -1,35 +0,0 @@ -string('invite_code', 8)->nullable(); - $table->index('invite_code'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_19_155026_update_balance_withdraw_success_notice.php b/database/migrations/2018_10_19_155026_update_balance_withdraw_success_notice.php deleted file mode 100644 index 3c34f4e5..00000000 --- a/database/migrations/2018_10_19_155026_update_balance_withdraw_success_notice.php +++ /dev/null @@ -1,28 +0,0 @@ -where('notice_type', 'withdraw_success')->delete(); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_21_152934_create_ims_yz_member_parent.php b/database/migrations/2018_10_21_152934_create_ims_yz_member_parent.php deleted file mode 100644 index 447e2110..00000000 --- a/database/migrations/2018_10_21_152934_create_ims_yz_member_parent.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('parent_id')->default(0)->comment('父id'); - $table->integer('level')->default(0)->comment('层级'); - $table->integer('member_id')->default(0)->comment('会员ID'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->index(['member_id', 'level']); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_parent` comment '会员--父类表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_parent'); - } -} diff --git a/database/migrations/2018_10_21_152950_create_ims_yz_member_children.php b/database/migrations/2018_10_21_152950_create_ims_yz_member_children.php deleted file mode 100644 index 0aa74b3c..00000000 --- a/database/migrations/2018_10_21_152950_create_ims_yz_member_children.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('child_id')->default(0)->comment('下级id'); - $table->integer('level')->default(0)->comment('层级'); - $table->integer('member_id')->default(0)->comment('会员ID'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->index(['member_id', 'level']); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_children` comment '会员--子类表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_children'); - } -} diff --git a/database/migrations/2018_10_23_134514_create_ims_yz_point_recharge_table.php b/database/migrations/2018_10_23_134514_create_ims_yz_point_recharge_table.php deleted file mode 100644 index 50d8fa72..00000000 --- a/database/migrations/2018_10_23_134514_create_ims_yz_point_recharge_table.php +++ /dev/null @@ -1,62 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('member_id')->nullable()->comment('会员id'); - $table->decimal('money', 14)->nullable()->comment('充值数量'); - $table->integer('type')->nullable()->comment('充值方式'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->string('order_sn', 50)->nullable()->comment('充值单号'); - $table->boolean('status')->nullable()->default(0)->comment('充值状态'); - $table->string('remark', 50)->comment('备注'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_point_recharge` comment '积分--积分充值明细表'"); - $records = \app\common\models\finance\PointLog::where('point_mode', 5)->get(); - foreach ($records as $key => $record) { - \Illuminate\Support\Facades\DB::table('yz_point_recharge')->insert( - [ - 'uniacid' => $record->uniacid, - 'member_id' => $record->member_id, - 'money' => $record->point, - 'type' => 0, - 'created_at' => time(), - 'updated_at' => time(), - 'order_sn' => 'RP20181022000000000000', - 'status' => 1, - 'remark' => '明细记录迁移', - ] - ); - } - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ims_yz_point_recharge'); - } - -} diff --git a/database/migrations/2018_10_23_154225_add_selfmoney_to_yz_member_relation.php b/database/migrations/2018_10_23_154225_add_selfmoney_to_yz_member_relation.php deleted file mode 100644 index 3b32e879..00000000 --- a/database/migrations/2018_10_23_154225_add_selfmoney_to_yz_member_relation.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('become_selfmoney', 15, 2)->default('0.00'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_23_155026_update_order_express.php b/database/migrations/2018_10_23_155026_update_order_express.php deleted file mode 100644 index b69b6ef1..00000000 --- a/database/migrations/2018_10_23_155026_update_order_express.php +++ /dev/null @@ -1,50 +0,0 @@ - 'SF', - 'huitongkuaidi' => 'HTKY', - 'zhongtong' => 'ZTO', - 'shentong' => 'STO', - 'yuantong' => 'YTO', - 'yunda' => 'YD', - 'youzhengguonei' => 'YZPY', - 'ems' => 'EMS', - 'tiantian' => 'HHTT', - 'youshuwuliu' => 'UC', - 'debangwuliu' => 'DBL', - 'zhaijisong' => 'ZJS', - 'tnt' => 'TNT', - 'ups' => 'UPS', - 'fedex' => 'FEDEX', - ]; - foreach ($companies as $key => $com) { - \app\common\models\order\Express::where('express_code', $key)->update(['express_code' => $com]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_10_24_103537_create_ims_yz_phone_attribution.php b/database/migrations/2018_10_24_103537_create_ims_yz_phone_attribution.php deleted file mode 100644 index 7b85694e..00000000 --- a/database/migrations/2018_10_24_103537_create_ims_yz_phone_attribution.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->string('province', 200)->default('')->nullable()->comment('省'); - $table->string('city', 255)->default('')->nullable()->comment('市'); - $table->string('sp', 255)->default('')->nullable()->comment('运营商'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement( - "ALTER TABLE `" . app('db')->getTablePrefix() . "yz_phone_attribution` comment '商城--电话号码归属地'" - ); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::dropIfExists('yz_phone_attribution'); - } -} diff --git a/database/migrations/2018_10_24_111818_create_yz_operation_log_table.php b/database/migrations/2018_10_24_111818_create_yz_operation_log_table.php deleted file mode 100644 index 524bce89..00000000 --- a/database/migrations/2018_10_24_111818_create_yz_operation_log_table.php +++ /dev/null @@ -1,50 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->index('idx_uniacid'); - $table->integer('user_id')->default(0)->comment('操作人id'); - $table->string('user_name', 120)->default('')->comment('操作人'); - $table->string('modules', 100)->default('')->comment('模块'); - $table->string('type', 100)->default('')->comment('模块类别'); - $table->string('ip', 135)->default('')->comment('操作人IP'); - $table->string('old_content', 255)->default('')->comment('修改前内容'); - $table->string('new_content', 255)->default('')->comment('修改后内容'); - $table->string('field_name', 255)->default('')->comment('字段名称'); - $table->string('field', 255)->default('')->comment('修改的字段'); - $table->string('extend', 255)->default(''); - $table->string('mark', 255)->default('')->comment('修改所属的id'); - $table->text('input', 65535)->nullable(); - $table->tinyInteger('status')->default(0)->comment('0:记录成功|1:记录失败'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_operation_log comment '操作员操作记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_operation_log'); - } -} diff --git a/database/migrations/2018_10_31_114510_create_ims_yz_member_lower_count.php b/database/migrations/2018_10_31_114510_create_ims_yz_member_lower_count.php deleted file mode 100644 index 68677e04..00000000 --- a/database/migrations/2018_10_31_114510_create_ims_yz_member_lower_count.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->integer('first_total')->default(0)->comment('一级下线总数'); - $table->integer('second_total')->default(0)->comment('二级下线总数'); - $table->integer('third_total')->default(0)->comment('三级下线总数'); - $table->integer('team_total')->default(0)->comment('团队总数'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_lower_count comment '会员下线统计表表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::drop('yz_member_lower_count'); - } -} diff --git a/database/migrations/2018_10_31_114534_create_ims_yz_member_lower_order.php b/database/migrations/2018_10_31_114534_create_ims_yz_member_lower_order.php deleted file mode 100644 index a38ab088..00000000 --- a/database/migrations/2018_10_31_114534_create_ims_yz_member_lower_order.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->integer('first_order_quantity')->default(0)->comment('一级下线订单数'); - $table->integer('first_order_amount')->default(0)->comment('一级下线订单金额'); - $table->integer('second_order_quantity')->default(0)->comment('二级下线订单数'); - $table->integer('second_order_amount')->default(0)->comment('二级下线订单金额'); - $table->integer('third_order_quantity')->default(0)->comment('三级下线订单数'); - $table->integer('third_order_amount')->default(0)->comment('三级下线订单金额'); - $table->integer('team_order_quantity')->default(0)->comment('团队下线订单数'); - $table->integer('team_order_amount')->default(0)->comment('团队下线订单金额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_lower_order comment '会员下线订单统计表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::drop('yz_member_lower_order'); - } -} diff --git a/database/migrations/2018_10_31_134514_create_ims_yz_order_income_count_table.php b/database/migrations/2018_10_31_134514_create_ims_yz_order_income_count_table.php deleted file mode 100644 index 6e41958d..00000000 --- a/database/migrations/2018_10_31_134514_create_ims_yz_order_income_count_table.php +++ /dev/null @@ -1,66 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('uid')->comment('购买者id'); - $table->string('buy_name')->nullable()->comment('购买者昵称'); - $table->integer('parent_id')->comment('推荐者id'); - $table->string('parent_name')->nullable()->comment('推荐者昵称'); - $table->string('shop_name')->nullable()->comment('商家名称'); - $table->string('order_sn')->nullable()->comment('订单号'); - $table->string('order_id')->nullable()->comment('订单号'); - $table->decimal('price', 14)->nullable()->comment('订单金额'); - $table->decimal('cost_price', 14)->nullable()->comment('订单成本价'); - $table->decimal('dispatch_price', 14)->nullable()->comment('订单运费'); - $table->decimal('undividend', 14)->nullable()->comment('未被分红利润'); - $table->decimal('supplier', 14)->nullable()->comment('供应商利润'); - $table->decimal('cashier', 14)->nullable()->comment('收银台利润'); - $table->decimal('store', 14)->nullable()->comment('门店利润'); - $table->decimal('point', 14)->nullable()->comment('获得积分'); - $table->decimal('love', 14)->nullable()->comment('获得爱心值'); - $table->decimal('micro_shop', 14)->nullable()->comment('微店分红'); - $table->decimal('team_dividend', 14)->nullable()->comment('经销商提成'); - $table->decimal('area_dividend', 14)->nullable()->comment('区域分红'); - $table->decimal('merchant', 14)->nullable()->comment('招商员分红'); - $table->decimal('merchant_center', 14)->nullable()->comment('招商中心分红'); - $table->decimal('commission', 14)->nullable()->comment('分销分红'); - $table->string('address')->nullable()->comment('地址'); - $table->integer('status')->nullable()->comment('订单状态'); - $table->integer('plugin_id')->nullable()->comment('插件id'); - $table->integer('day_time')->comment('购买日期'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_income_count comment '订单--订单分润表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_income_everyday'); - } - -} diff --git a/database/migrations/2018_11_01_190843_create_ims_yz_order_statistics.php b/database/migrations/2018_11_01_190843_create_ims_yz_order_statistics.php deleted file mode 100644 index 0910e9f6..00000000 --- a/database/migrations/2018_11_01_190843_create_ims_yz_order_statistics.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->integer('total_quantity')->default(0)->nullable()->comment('商城总订单数'); - $table->integer('total_amount')->default(0)->nullable()->comment('商城总订单金额'); - $table->integer('total_pay_quantity')->default(0)->nullable()->comment('商城已支付订单数'); - $table->integer('total_pay_amount')->default(0)->nullable()->comment('商城已支付订单金额'); - $table->integer('total_complete_quantity')->default(0)->nullable()->comment('商城已完成订单数'); - $table->integer('total_complete_amount')->default(0)->nullable()->comment('商城已完成订单金额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_statistics comment '订单--商城订单统计表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::dropIfExists('yz_order_statistics'); - } -} diff --git a/database/migrations/2018_11_04_154225_add_become_term_to_yz_member_relation.php b/database/migrations/2018_11_04_154225_add_become_term_to_yz_member_relation.php deleted file mode 100644 index fe712539..00000000 --- a/database/migrations/2018_11_04_154225_add_become_term_to_yz_member_relation.php +++ /dev/null @@ -1,42 +0,0 @@ -string('become_term')->nullable(); - }); - $member = \app\common\models\MemberRelation::get(); - foreach ($member as $value) { - if ($value->become > 1) { - $value->become_term = serialize([$value->become => $value->become]); - $value->become = 2; - $value->save(); - } - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_04_154225_change_become_goods_id_to_yz_member_relation.php b/database/migrations/2018_11_04_154225_change_become_goods_id_to_yz_member_relation.php deleted file mode 100644 index 59e68369..00000000 --- a/database/migrations/2018_11_04_154225_change_become_goods_id_to_yz_member_relation.php +++ /dev/null @@ -1,55 +0,0 @@ -string('become_goods_id')->change(); - } - if (!Schema::hasColumn('yz_member_relation', 'become_goods')) { - $table->text('become_goods')->nullable(); - } - }); - - $member = \app\common\models\MemberRelation::get(); - foreach ($member as $value) { - if (!empty($value->become_goods_id)) { - $goods = \app\common\models\Goods::find($value->become_goods_id); - if ($goods) { - $value->become_goods = serialize([ - $value->become_goods_id => [ - 'title' => $goods->title, - 'thumb' => $goods->thumb, - 'goods_id' => $goods->id - ] - ]); - $value->save(); - } - } - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_06_154225_add_index_to_order_goods_table.php b/database/migrations/2018_11_06_154225_add_index_to_order_goods_table.php deleted file mode 100644 index 4e68d6a2..00000000 --- a/database/migrations/2018_11_06_154225_add_index_to_order_goods_table.php +++ /dev/null @@ -1,39 +0,0 @@ -index('order_id'); - $table->index('goods_id'); - }); - }catch (Exception $e){ - - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_07_091011_insert_data_to_yz_pay_type.php b/database/migrations/2018_11_07_091011_insert_data_to_yz_pay_type.php deleted file mode 100644 index 6cdbf5c6..00000000 --- a/database/migrations/2018_11_07_091011_insert_data_to_yz_pay_type.php +++ /dev/null @@ -1,52 +0,0 @@ - 19, - 'name' =>'EUP支付', - 'plugin_id' =>0, - 'code' =>'EUP', - 'type' =>2, - 'unit' =>'元', - 'setting_key' =>'plugin.eup_pay', - ]); - } - if(!\app\common\models\PayType::find(23)) { - - \app\common\models\PayType::insert([ - 'id' => 23, - 'name' => 'PLD支付', - 'plugin_id' => 0, - 'code' => 'PLD', - 'type' => 2, - 'unit' => '元', - 'setting_key' => 'plugin.pld_pay', - ]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_20_154225_add_events_to_yz_order_job.php b/database/migrations/2018_11_20_154225_add_events_to_yz_order_job.php deleted file mode 100644 index 23f75055..00000000 --- a/database/migrations/2018_11_20_154225_add_events_to_yz_order_job.php +++ /dev/null @@ -1,48 +0,0 @@ -text('events')->nullable(); - }); - } - } - if (Schema::hasTable('yz_order_paid_job')) { - if (!Schema::hasColumn('yz_order_paid_job', 'events')) { - Schema::table('yz_order_paid_job', function (Blueprint $table) { - $table->text('events')->nullable(); - }); - } - } - if (Schema::hasTable('yz_order_received_job')) { - if (!Schema::hasColumn('yz_order_received_job', 'events')) { - Schema::table('yz_order_received_job', function (Blueprint $table) { - $table->text('events')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_20_154225_add_fields_to_yz_order.php b/database/migrations/2018_11_20_154225_add_fields_to_yz_order.php deleted file mode 100644 index f72a7e0c..00000000 --- a/database/migrations/2018_11_20_154225_add_fields_to_yz_order.php +++ /dev/null @@ -1,48 +0,0 @@ -text('note')->nullable(); - }); - } - } - if (Schema::hasTable('yz_order')) { - if (!Schema::hasColumn('yz_order', 'cost_amount')) { - Schema::table('yz_order', function (Blueprint $table) { - $table->decimal('cost_amount', 14)->default(0.00); - }); - } - } - if (Schema::hasTable('yz_order')) { - if (!Schema::hasColumn('yz_order', 'shop_name')) { - Schema::table('yz_order', function (Blueprint $table) { - $table->string('shop_name')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_11_20_154225_add_is_member_deleted_to_yz_member_coupon.php b/database/migrations/2018_11_20_154225_add_is_member_deleted_to_yz_member_coupon.php deleted file mode 100644 index 0018ddbe..00000000 --- a/database/migrations/2018_11_20_154225_add_is_member_deleted_to_yz_member_coupon.php +++ /dev/null @@ -1,35 +0,0 @@ -tinyInteger('is_member_deleted')->unsigned()->default(0)->comment('会员已删除'); - }); - } - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_06_154225_add_index_to_member_children_table.php b/database/migrations/2018_12_06_154225_add_index_to_member_children_table.php deleted file mode 100644 index cb6e74b0..00000000 --- a/database/migrations/2018_12_06_154225_add_index_to_member_children_table.php +++ /dev/null @@ -1,36 +0,0 @@ -index('child_id'); - }); - } catch (Exception $e) { - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_17_100225_add_no_refund_to_yz_goods_and_yz_order_table.php b/database/migrations/2018_12_17_100225_add_no_refund_to_yz_goods_and_yz_order_table.php deleted file mode 100644 index 3398abba..00000000 --- a/database/migrations/2018_12_17_100225_add_no_refund_to_yz_goods_and_yz_order_table.php +++ /dev/null @@ -1,56 +0,0 @@ -tinyInteger('no_refund')->default(0); - } - }); - } - - if (Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order', 'no_refund')) { - $table->tinyInteger('no_refund')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods')) { - if (Schema::hasColumn('yz_goods', 'no_refund')) { - Schema::table('yz_goods', function (\Illuminate\Database\Schema\Blueprint $table) { - $table->dropColumn('no_refund'); - }); - } - } - - if (Schema::hasTable('yz_order')) { - if (Schema::hasColumn('yz_order', 'no_refund')) { - Schema::table('yz_order', function (\Illuminate\Database\Schema\Blueprint $table) { - $table->dropColumn('no_refund'); - }); - } - } - } -} diff --git a/database/migrations/2018_12_18_142652_create_ims_yz_pay_type_group_table.php b/database/migrations/2018_12_18_142652_create_ims_yz_pay_type_group_table.php deleted file mode 100644 index 8af47936..00000000 --- a/database/migrations/2018_12_18_142652_create_ims_yz_pay_type_group_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->string('name', 100)->default('')->comment('分组名称'); - $table->timestamps(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_pay_type_group comment '商城--支付方式分组表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_type_group'); - } -} diff --git a/database/migrations/2018_12_18_150928_add_data_to_pay_type_group_table.php b/database/migrations/2018_12_18_150928_add_data_to_pay_type_group_table.php deleted file mode 100644 index 5c56f203..00000000 --- a/database/migrations/2018_12_18_150928_add_data_to_pay_type_group_table.php +++ /dev/null @@ -1,60 +0,0 @@ - 1, - 'name' =>'微信支付', - ]); - } - if(!\app\common\models\PayTypeGroup::find(2)) { - \app\common\models\PayTypeGroup::insert([ - 'id' => 2, - 'name' =>'支付宝支付', - ]); - } - if(!\app\common\models\PayTypeGroup::find(3)) { - \app\common\models\PayTypeGroup::insert([ - 'id' => 3, - 'name' =>'余额支付', - ]); - } - if(!\app\common\models\PayTypeGroup::find(4)) { - \app\common\models\PayTypeGroup::insert([ - 'id' => 4, - 'name' =>'后台付款', - ]); - } - if(!\app\common\models\PayTypeGroup::find(5)) { - \app\common\models\PayTypeGroup::insert([ - 'id' => 5, - 'name' =>'现金支付', - ]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_18_154705_add_field_group_to_pay_type_table.php b/database/migrations/2018_12_18_154705_add_field_group_to_pay_type_table.php deleted file mode 100644 index ba667def..00000000 --- a/database/migrations/2018_12_18_154705_add_field_group_to_pay_type_table.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('group_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_18_160955_add_data_group_to_pay_type_table.php b/database/migrations/2018_12_18_160955_add_data_group_to_pay_type_table.php deleted file mode 100644 index 14c1927f..00000000 --- a/database/migrations/2018_12_18_160955_add_data_group_to_pay_type_table.php +++ /dev/null @@ -1,94 +0,0 @@ -group_id = 1; - $weChatPayType->save(); - } - $weChatPayType = \app\common\models\PayType::find(6); - if($weChatPayType){ - $weChatPayType->group_id = 1; - $weChatPayType->save(); - } - $weChatPayType = \app\common\models\PayType::find(9); - if($weChatPayType){ - $weChatPayType->group_id = 1; - $weChatPayType->save(); - } - $weChatPayType = \app\common\models\PayType::find(12); - if($weChatPayType){ - $weChatPayType->group_id = 1; - $weChatPayType->save(); - } - - //支付宝支付,分组为2 - $alipayPayType = \app\common\models\PayType::find(2); - if($alipayPayType){ - $alipayPayType->group_id = 2; - $alipayPayType->save(); - } - $alipayPayType = \app\common\models\PayType::find(7); - if($alipayPayType){ - $alipayPayType->group_id = 2; - $alipayPayType->save(); - } - $alipayPayType = \app\common\models\PayType::find(10); - if($alipayPayType){ - $alipayPayType->group_id = 2; - $alipayPayType->save(); - } - $alipayPayType = \app\common\models\PayType::find(15); - if($alipayPayType){ - $alipayPayType->group_id = 2; - $alipayPayType->save(); - } - - //余额支付,分组为3 - $balancePayType = \app\common\models\PayType::find(3); - if($balancePayType){ - $balancePayType->group_id = 3; - $balancePayType->save(); - } - - //后台支付,分组为4 - $backendPayType = \app\common\models\PayType::find(5); - if($backendPayType){ - $backendPayType->group_id = 4; - $backendPayType->save(); - } - //现金支付,分组为5 - $backendPayType = \app\common\models\PayType::find(8); - if($backendPayType){ - $backendPayType->group_id = 5; - $backendPayType->save(); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_20_171609_create_ims_yz_category_discount.php b/database/migrations/2018_12_20_171609_create_ims_yz_category_discount.php deleted file mode 100644 index 16e06cb0..00000000 --- a/database/migrations/2018_12_20_171609_create_ims_yz_category_discount.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->string('category_ids')->nullable()->comment('分类id'); - $table->integer('uniacid')->default(0); - $table->tinyInteger('level_discount_type')->default(1)->comment('折扣类型'); - $table->tinyInteger('discount_method')->default(1)->comment('折扣方式'); - $table->text('discount_value')->nullable()->comment('折扣值'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_category_discount` comment '折扣分类表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_22_154225_add_index_to_order_address_table.php b/database/migrations/2018_12_22_154225_add_index_to_order_address_table.php deleted file mode 100644 index c28000ac..00000000 --- a/database/migrations/2018_12_22_154225_add_index_to_order_address_table.php +++ /dev/null @@ -1,38 +0,0 @@ -index('order_id'); - }); - }catch (\Exception $e){ - \Log::error($e); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_22_154225_add_index_to_order_table.php b/database/migrations/2018_12_22_154225_add_index_to_order_table.php deleted file mode 100644 index a9cae732..00000000 --- a/database/migrations/2018_12_22_154225_add_index_to_order_table.php +++ /dev/null @@ -1,42 +0,0 @@ -index('uniacid'); - $table->index('uid'); - $table->index('order_sn'); - $table->index('plugin_id'); - $table->index('status'); - }); - }catch (\Exception $e){ - \Log::error($e); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_23_171247_create_ims_yz_order_request_table.php b/database/migrations/2018_12_23_171247_create_ims_yz_order_request_table.php deleted file mode 100644 index d30b5cfe..00000000 --- a/database/migrations/2018_12_23_171247_create_ims_yz_order_request_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('order_id'); - $table->text('request')->nullable()->comment('请求参数'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_request` comment'订单--创建请求参数记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_request')) { - Schema::drop('yz_order_request'); - } - } - -} diff --git a/database/migrations/2018_12_27_160955_add_upgrade_at_to_yz_member_table.php b/database/migrations/2018_12_27_160955_add_upgrade_at_to_yz_member_table.php deleted file mode 100644 index 9610d970..00000000 --- a/database/migrations/2018_12_27_160955_add_upgrade_at_to_yz_member_table.php +++ /dev/null @@ -1,31 +0,0 @@ -integer('upgrade_at')->nullable()->comment('升级时间'); - $table->integer('downgrade_at')->nullable()->comment('降级时间'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2018_12_29_171609_create_ims_yz_member_invitation_log_table.php b/database/migrations/2018_12_29_171609_create_ims_yz_member_invitation_log_table.php deleted file mode 100644 index 2e147bb3..00000000 --- a/database/migrations/2018_12_29_171609_create_ims_yz_member_invitation_log_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->nullable()->comment('会员id'); - $table->string('invitation_code')->default('')->comment('邀请码'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_invitation_log` comment '会员--邀请码表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_invitation_log'); - } -} diff --git a/database/migrations/2019_01_02_135101_add_min_point_deduct_to_goods_sale_table.php b/database/migrations/2019_01_02_135101_add_min_point_deduct_to_goods_sale_table.php deleted file mode 100644 index 59752564..00000000 --- a/database/migrations/2019_01_02_135101_add_min_point_deduct_to_goods_sale_table.php +++ /dev/null @@ -1,41 +0,0 @@ -string('min_point_deduct', 255)->nullable(); - }); - } - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_sale')) { - if (Schema::hasColumn('yz_goods_sale', 'min_point_deduct')) { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('min_point_deduct'); - }); - } - } - } -} diff --git a/database/migrations/2019_01_04_173014_add_plugin_id_to_yz_coupon.php b/database/migrations/2019_01_04_173014_add_plugin_id_to_yz_coupon.php deleted file mode 100644 index abca9c35..00000000 --- a/database/migrations/2019_01_04_173014_add_plugin_id_to_yz_coupon.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('plugin_id')->default(0)->comment('插件id'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_07_170019_create_ims_yz_exhelper_panel_table.php b/database/migrations/2019_01_07_170019_create_ims_yz_exhelper_panel_table.php deleted file mode 100644 index ab0bb4cc..00000000 --- a/database/migrations/2019_01_07_170019_create_ims_yz_exhelper_panel_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('panel_name')->nullable()->comment('电子面单名称'); - $table->string('panel_no')->nullable()->comment('电子面单客户账号'); - $table->string('panel_pass')->nullable()->comment('电子面单密码'); - $table->string('panel_sign')->nullable()->comment('月结编码'); - $table->string('panel_code')->nullable()->comment('收件网点标识'); - $table->string('panel_style')->nullable()->comment('模板样式'); - $table->string('exhelper_style')->nullable()->comment('快递类型'); - $table->boolean('isself')->default(0)->comment('是否通知快递员上门揽件'); - $table->boolean('isdefault')->default(0); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_exhelper_panel'); - } - -} diff --git a/database/migrations/2019_01_08_111342_create_ims_yz_invite_page.php b/database/migrations/2019_01_08_111342_create_ims_yz_invite_page.php deleted file mode 100644 index 9e73eca6..00000000 --- a/database/migrations/2019_01_08_111342_create_ims_yz_invite_page.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('goods_id')->nullable()->comment('商品id'); - $table->tinyInteger('status')->default(0)->comment('状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_invite_page comment '商品邀请页面开启记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_11_115255_add_ims_yz_invite_page.php b/database/migrations/2019_01_11_115255_add_ims_yz_invite_page.php deleted file mode 100644 index c363857a..00000000 --- a/database/migrations/2019_01_11_115255_add_ims_yz_invite_page.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('mid')->nullable()->comment('会员id'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_12_123854_create_yz_member_month_order.php b/database/migrations/2019_01_12_123854_create_yz_member_month_order.php deleted file mode 100644 index 10f175ee..00000000 --- a/database/migrations/2019_01_12_123854_create_yz_member_month_order.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('member_id')->default(0)->comment('会员id'); - $table->smallInteger('year')->default(0)->comment('年'); - $table->smallInteger('month')->default(0)->comment('月'); - $table->integer('order_num')->default(0)->comment('订单数量'); - $table->decimal('order_price', 10)->default(0.00)->comment('订单总额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_month_order` comment '会员--每月订单'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_14_200916_create_ims_yz_member_goods_invite_log.php b/database/migrations/2019_01_14_200916_create_ims_yz_member_goods_invite_log.php deleted file mode 100644 index f771dc88..00000000 --- a/database/migrations/2019_01_14_200916_create_ims_yz_member_goods_invite_log.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->nullable()->comment('会员id'); - $table->integer('parent_id')->nullable()->comment('父id'); - $table->string('invitation_code')->default()->comment('邀请码'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_15_142603_create_yz_member_month_rank.php b/database/migrations/2019_01_15_142603_create_yz_member_month_rank.php deleted file mode 100644 index d7790eaf..00000000 --- a/database/migrations/2019_01_15_142603_create_yz_member_month_rank.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('member_id')->default(0)->comment('会员id'); - $table->smallInteger('year')->default(0)->comment('年'); - $table->smallInteger('month')->default(0)->comment('月'); - $table->decimal('price', 10)->default(0.00)->comment('一二级团队业绩总额'); - $table->integer('rank')->default(0)->comment('排行'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_month_rank` comment '会员--每月排行'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_16_102509_add_need_address_to_yz_order_and_yz_goods_table.php b/database/migrations/2019_01_16_102509_add_need_address_to_yz_order_and_yz_goods_table.php deleted file mode 100644 index fb93daf1..00000000 --- a/database/migrations/2019_01_16_102509_add_need_address_to_yz_order_and_yz_goods_table.php +++ /dev/null @@ -1,53 +0,0 @@ -tinyInteger('need_address')->default(0)->comment('是否需要填写收货地址 0:是1:否'); - } - }); - } - - if (Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order', 'need_address')) { - $table->tinyInteger('need_address')->default(0)->comment('是否需要填写收货地址 0:是1:否'); - } - }); - } - - if (Schema::hasTable('yz_order_goods')) { - Schema::table('yz_order_goods', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_goods', 'need_address')) { - $table->tinyInteger('need_address')->default(0)->comment('是否需要填写收货地址 0:是1:否'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_18_154225_add_separate_to_yz_member_income.php b/database/migrations/2019_01_18_154225_add_separate_to_yz_member_income.php deleted file mode 100644 index 3ef1f4c6..00000000 --- a/database/migrations/2019_01_18_154225_add_separate_to_yz_member_income.php +++ /dev/null @@ -1,34 +0,0 @@ -text('separate')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_18_170914_add_zipcode_to_order_address.php b/database/migrations/2019_01_18_170914_add_zipcode_to_order_address.php deleted file mode 100644 index c28a4dff..00000000 --- a/database/migrations/2019_01_18_170914_add_zipcode_to_order_address.php +++ /dev/null @@ -1,34 +0,0 @@ -string('zipcode', 50); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_01_21_111731_add_order_invoice.php b/database/migrations/2019_01_21_111731_add_order_invoice.php deleted file mode 100644 index 7671bcf9..00000000 --- a/database/migrations/2019_01_21_111731_add_order_invoice.php +++ /dev/null @@ -1,51 +0,0 @@ -integer('invoice_type')->nullable(); - $table->integer('rise_type')->nullable(); - $table->string('call')->nullable(); - $table->integer('company_number')->nullable(); - $table->string('invoice')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order')) { - if (Schema::hasColumn('yz_order', 'invoice')) { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('invoice_type'); - $table->dropColumn('rise_type'); - $table->dropColumn('call'); - $table->dropColumn('company_number'); - $table->dropColumn('invoice'); - }); - } - } - // - } -} diff --git a/database/migrations/2019_01_24_140719_add_auto_receipt_to_yz_order_table.php b/database/migrations/2019_01_24_140719_add_auto_receipt_to_yz_order_table.php deleted file mode 100644 index cf30ddea..00000000 --- a/database/migrations/2019_01_24_140719_add_auto_receipt_to_yz_order_table.php +++ /dev/null @@ -1,37 +0,0 @@ -tinyInteger('auto_receipt')->default(0)->comment('是否自动收货 0:是1:否'); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_01_29_144005_add_hotel_to_yz_dispatch_type_table.php b/database/migrations/2019_01_29_144005_add_hotel_to_yz_dispatch_type_table.php deleted file mode 100644 index 54ecaaa6..00000000 --- a/database/migrations/2019_01_29_144005_add_hotel_to_yz_dispatch_type_table.php +++ /dev/null @@ -1,37 +0,0 @@ -count()) { - \app\common\models\DispatchType::where('id', 4)->delete(); - \Illuminate\Support\Facades\DB::insert('INSERT INTO `'.app('db')->getTablePrefix().'yz_dispatch_type` (`id`, `name`, `plugin`, `need_send`) -VALUES - (4, \'酒店入住\', 33, 1); -'); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_02_12_154823_add_ims_yz_goods_table.php b/database/migrations/2019_02_12_154823_add_ims_yz_goods_table.php deleted file mode 100644 index 68cb82e4..00000000 --- a/database/migrations/2019_02_12_154823_add_ims_yz_goods_table.php +++ /dev/null @@ -1,34 +0,0 @@ -boolean('type2')->nullable()->default(1)->comment('商品类型2'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_02_14_091724_add_poundage_type_to_yz_withdraw.php b/database/migrations/2019_02_14_091724_add_poundage_type_to_yz_withdraw.php deleted file mode 100644 index 2bae4d3e..00000000 --- a/database/migrations/2019_02_14_091724_add_poundage_type_to_yz_withdraw.php +++ /dev/null @@ -1,35 +0,0 @@ -tinyInteger('poundage_type')->nullable()->default(0)->after('poundage_rate')->comment('手续费类型 0:比例 1:固定'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_02_15_105631_update_order_invoice.php b/database/migrations/2019_02_15_105631_update_order_invoice.php deleted file mode 100644 index c765202f..00000000 --- a/database/migrations/2019_02_15_105631_update_order_invoice.php +++ /dev/null @@ -1,35 +0,0 @@ -string('company_number')->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_02_18_165023_create_dispatch_classify.php b/database/migrations/2019_02_18_165023_create_dispatch_classify.php deleted file mode 100644 index 82debb20..00000000 --- a/database/migrations/2019_02_18_165023_create_dispatch_classify.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->string('dispatch_id')->nullable()->comment(''); - $table->tinyInteger('freight_type')->comment('运费类型'); - $table->integer('freight_value')->nullable()->comment('固定运费值'); - $table->integer('template_id')->nullable()->comment('运费模板ID'); - $table->integer('is_cod')->comment("是否支持貨到付款"); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_dispatch_classify comment '配送分类表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('dispatch_classify'); - } -} diff --git a/database/migrations/2019_02_19_175024_create_admin_permissions_table.php b/database/migrations/2019_02_19_175024_create_admin_permissions_table.php deleted file mode 100644 index 65e4e27a..00000000 --- a/database/migrations/2019_02_19_175024_create_admin_permissions_table.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->string('name')->comment('权限名'); - $table->string('label')->comment('权限解释名称'); - $table->string('description')->comment('描述与备注'); - $table->tinyInteger('parent_id')->comment('级别'); - $table->string('icon')->comment('图标'); - $table->timestamps(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_permissions comment '角色管理-权限表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_permissions'); - } -} diff --git a/database/migrations/2019_02_19_175336_create_ims_yz_admin_users_table.php b/database/migrations/2019_02_19_175336_create_ims_yz_admin_users_table.php deleted file mode 100644 index 86dcd21e..00000000 --- a/database/migrations/2019_02_19_175336_create_ims_yz_admin_users_table.php +++ /dev/null @@ -1,50 +0,0 @@ -increments('uid')->comment('管理员用户表ID'); - $table->string('username', 100)->unique()->comment('用户名'); - $table->string('password')->comment('密码'); - $table->tinyInteger('status')->default(2)->comment('状态(0:超级管理员(admin); 1:审核; 2:有效; 3:禁用)'); - $table->tinyInteger('type')->default(1)->comment('类型(0:超级管理员(admin); 1:普通用户; 3:店员)'); - $table->text('remark')->comment('备注'); - $table->integer('application_number')->default(0)->comment('平台数量(0:代表不允许创建)'); - $table->integer('endtime')->default(0)->comment('到期时间(0:永久有效)'); - $table->integer('owner_uid'); - $table->string('salt', 10); - $table->string('joinip', 15)->comment('加入ip'); - $table->integer('lastvisit')->comment('最后访问'); - $table->string('lastip', 15)->comment('最后访问ip'); - $table->rememberToken(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_users comment '角色管理-管理员用户表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_users'); - } -} diff --git a/database/migrations/2019_02_19_175501_create_ims_yz_admin_roles_table.php b/database/migrations/2019_02_19_175501_create_ims_yz_admin_roles_table.php deleted file mode 100644 index 6630e8bd..00000000 --- a/database/migrations/2019_02_19_175501_create_ims_yz_admin_roles_table.php +++ /dev/null @@ -1,36 +0,0 @@ -increments('id'); - $table->string('name')->comment('角色名称'); - $table->string('description')->comment('备注'); - $table->timestamps(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_roles comment '角色管理-角色表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_roles'); - } -} diff --git a/database/migrations/2019_02_19_175607_create_ims_yz_admin_role_user_table.php b/database/migrations/2019_02_19_175607_create_ims_yz_admin_role_user_table.php deleted file mode 100644 index d84b9660..00000000 --- a/database/migrations/2019_02_19_175607_create_ims_yz_admin_role_user_table.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('role_id'); - $table->integer('user_id'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_role_user comment '角色管理-管理员用户与角色中间表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_role_user'); - } -} diff --git a/database/migrations/2019_02_19_175733_create_ims_yz_admin_permission_role_table.php b/database/migrations/2019_02_19_175733_create_ims_yz_admin_permission_role_table.php deleted file mode 100644 index 65feb431..00000000 --- a/database/migrations/2019_02_19_175733_create_ims_yz_admin_permission_role_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('permission_id'); - $table->integer('role_id'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_permission_role comment '角色管理-角色与权限中间表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_permission_role'); - } -} diff --git a/database/migrations/2019_02_27_173156_create_ims_yz_system_setting_table.php b/database/migrations/2019_02_27_173156_create_ims_yz_system_setting_table.php deleted file mode 100644 index a036db12..00000000 --- a/database/migrations/2019_02_27_173156_create_ims_yz_system_setting_table.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->string('key', 50)->comment('设置类型'); - $table->text('value', 65535)->comment('设置内容'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_system_setting comment '商城--系统设置表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_system_setting'); - } -} diff --git a/database/migrations/2019_02_28_105711_create_table_yz_uniacid_app.php b/database/migrations/2019_02_28_105711_create_table_yz_uniacid_app.php deleted file mode 100644 index f954ca5e..00000000 --- a/database/migrations/2019_02_28_105711_create_table_yz_uniacid_app.php +++ /dev/null @@ -1,60 +0,0 @@ - increments('id'); - $table->integer('uniacid')->index()->nullable(); - $table->string('img')->comment('应用图片'); - $table->string('name', 100)->comment('应用名称'); - $table->string('kind', 100)->nullable()->comment('行业分类'); - $table->string('title', 100)->nullable()->comment('应用标题'); - $table->string('description')->nullable()->comment('应用描述'); - $table->float('version')->nullable()->comment('应用版本'); - $table->integer('validity_time')->comment('有效期'); - $table->tinyInteger('type')->comment('应用类型,1服务号 2订阅号 3企业号 4小程序5 PC应用6 APP应用 7小游戏'); - $table->tinyInteger('status')->nullable()->default(1)->comment('应用状态 0禁用1启用'); - $table->integer('creator')->nullable()->comment('平台创建者'); - - $table->string('url')->nullable(); - $table->string('subscribes')->nullable(); - $table->integer('welcome_support')->nullable(); - - $table->string('key')->nullable(); - $table->string('secret')->nullable(); - $table->string('token')->nullable(); - $table->string('encodingaeskey')->nullable(); - - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_uniacid_app comment '商城--平台表'");//表注释 - } - } - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_uniacid_app')) { - - Schema::dropIfExists('yz_uniacid_app'); - } - } -} diff --git a/database/migrations/2019_02_28_160419_create_ims_yz_wechat_rule_table.php b/database/migrations/2019_02_28_160419_create_ims_yz_wechat_rule_table.php deleted file mode 100644 index 380fa0be..00000000 --- a/database/migrations/2019_02_28_160419_create_ims_yz_wechat_rule_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('name')->default('')->nullable()->comment('规则名称'); - $table->string('module')->default('')->nullable()->comment('回复模块'); - $table->integer('displayorder')->default(0)->nullable()->comment('优先级'); - $table->integer('status')->default(0)->nullable()->comment('是否开启,1开启,0关闭'); - $table->string('containtype')->default('')->nullable()->comment('回复内容类型'); - $table->integer('reply_type')->default(0)->nullable()->comment('回复类型'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - - - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_wechat_rule comment '商城--公共号回复规则表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_wechat_rule'); - } -} diff --git a/database/migrations/2019_03_01_092840_create_ims_yz_wechat_rule_keyword_table.php b/database/migrations/2019_03_01_092840_create_ims_yz_wechat_rule_keyword_table.php deleted file mode 100644 index 976db80c..00000000 --- a/database/migrations/2019_03_01_092840_create_ims_yz_wechat_rule_keyword_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->integer('rid')->default(0)->comment('规则id'); - $table->integer('uniacid')->default(0); - $table->string('module')->default('')->nullable()->comment('回复模块'); - $table->string('content')->default('')->nullable()->comment('关键字内容'); - $table->integer('type')->default(0)->nullable()->comment('关键字匹配类型'); - $table->integer('displayorder')->default(0)->nullable()->comment('优先级'); - $table->integer('status')->default(0)->nullable()->comment('是否开启,1开启,0关闭'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - - - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_wechat_rule_keyword comment '商城--公共号回复关键字表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_wechat_rule_keyword'); - } -} diff --git a/database/migrations/2019_03_01_164323_update_invoice_call.php b/database/migrations/2019_03_01_164323_update_invoice_call.php deleted file mode 100644 index 13f41b17..00000000 --- a/database/migrations/2019_03_01_164323_update_invoice_call.php +++ /dev/null @@ -1,35 +0,0 @@ -renameColumn('call', 'collect_name'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_03_12_161739_create_yz_app_user_table.php b/database/migrations/2019_03_12_161739_create_yz_app_user_table.php deleted file mode 100644 index c23e6dba..00000000 --- a/database/migrations/2019_03_12_161739_create_yz_app_user_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('平台id'); - $table->integer('uid')->comment('用户id'); - $table->string('role')->comment('用户角色(manager:管理员; operator: 操作员; clerk:操作员)'); - $table->integer('rank')->default(0)->comment('公众号及小程序置顶排序'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_app_user comment '店铺用户--角色表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_app_user'); - } -} diff --git a/database/migrations/2019_03_13_155716_create_ims_yz_users_profile_table.php b/database/migrations/2019_03_13_155716_create_ims_yz_users_profile_table.php deleted file mode 100644 index 5291caf4..00000000 --- a/database/migrations/2019_03_13_155716_create_ims_yz_users_profile_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uid')->comment('用户id'); - $table->string('realname', 100)->comment('姓名'); - $table->string('avatar')->comment('头像'); - $table->string('mobile', 11)->comment('手机号'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_users_profile comment '系统--管理员信息表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_users_profile'); - } -} diff --git a/database/migrations/2019_03_18_094642_create_ims_yz_core_attachment.php b/database/migrations/2019_03_18_094642_create_ims_yz_core_attachment.php deleted file mode 100644 index caf77b52..00000000 --- a/database/migrations/2019_03_18_094642_create_ims_yz_core_attachment.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('uid')->default(0); - $table->string('filename',255)->default(''); - $table->string('attachment',255)->default(''); - $table->integer('type')->default(0); - $table->string('module_upload_dir',255)->default(''); - $table->integer('group_id')->nullable(); - $table->tinyInteger('upload_type')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_core_attachment comment '本地图片表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_core_attachment'); - } -} diff --git a/database/migrations/2019_03_20_093527_update_share_to_yz_goods_coupon_table.php b/database/migrations/2019_03_20_093527_update_share_to_yz_goods_coupon_table.php deleted file mode 100644 index aa96603d..00000000 --- a/database/migrations/2019_03_20_093527_update_share_to_yz_goods_coupon_table.php +++ /dev/null @@ -1,38 +0,0 @@ -tinyInteger('shopping_share')->default(0)->comment('购买分享优惠券开关'); - } - - if (!Schema::hasColumn('yz_goods_coupon', 'share_coupon')) { - $table->text('share_coupon')->nullable()->comment('分享优惠券'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_03_20_101716_create_yz_shopping_share_coupon_log_table.php b/database/migrations/2019_03_20_101716_create_yz_shopping_share_coupon_log_table.php deleted file mode 100644 index 7efa63e9..00000000 --- a/database/migrations/2019_03_20_101716_create_yz_shopping_share_coupon_log_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('share_uid')->default(0)->nullable()->comment('分享者会员id'); - $table->integer('receive_uid')->default(0)->nullable()->comment('领取者会员id'); - $table->integer('share_coupon_id')->default(0)->nullable()->comment('优惠卷分享表id'); - $table->integer('order_id')->default(0)->nullable()->comment('订单ID'); - $table->integer('coupon_id')->default(0)->nullable()->comment('优惠卷id'); - $table->string('coupon_name')->nullable()->comment('优惠卷名称'); - $table->text('log')->nullable()->comment('日志详细'); - $table->string('remark')->nullable()->comment('字段预留'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_shopping_share_coupon_log comment '优惠券--优惠券分享领取记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_shopping_share_coupon_log'); - } -} diff --git a/database/migrations/2019_03_20_101734_create_yz_shopping_share_coupon_table.php b/database/migrations/2019_03_20_101734_create_yz_shopping_share_coupon_table.php deleted file mode 100644 index 4e7808b2..00000000 --- a/database/migrations/2019_03_20_101734_create_yz_shopping_share_coupon_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('member_id')->default(0)->nullable()->comment('分享者会员id'); - $table->integer('order_id')->default(0)->nullable()->comment('订单id'); - $table->text('share_coupon')->nullable()->comment('分享优惠卷集合'); - $table->text('receive_coupon')->nullable()->comment('领取优惠卷集合'); - $table->tinyInteger('obtain_restriction')->default(0)->nullable()->comment('领取限制'); - $table->tinyInteger('status')->default(0)->nullable()->comment('是否以领完'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_shopping_share_coupon comment '优惠券--优惠券分享领取表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_shopping_share_coupon'); - } -} diff --git a/database/migrations/2019_03_28_134500_add_columns_to_ims_yz_goods_sale_table.php b/database/migrations/2019_03_28_134500_add_columns_to_ims_yz_goods_sale_table.php deleted file mode 100644 index 99b07b0e..00000000 --- a/database/migrations/2019_03_28_134500_add_columns_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,38 +0,0 @@ -boolean('point_type')->nullable()->default(0); - $table->decimal('max_once_point')->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('point_type'); - $table->dropColumn('max_once_point'); - }); - } -} \ No newline at end of file diff --git a/database/migrations/2019_03_28_172217_create_ims_yz_point_queue_table.php b/database/migrations/2019_03_28_172217_create_ims_yz_point_queue_table.php deleted file mode 100644 index 4d6e9dee..00000000 --- a/database/migrations/2019_03_28_172217_create_ims_yz_point_queue_table.php +++ /dev/null @@ -1,51 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('uid')->comment('会员ID'); - $table->integer('order_id')->nullable(); - $table->integer('goods_id')->nullable(); - $table->decimal('point_total', - 10)->default(0.00)->comment('赠送积分总数'); - $table->decimal('finish_point', - 10)->default(0.00)->comment('完成数量'); - $table->decimal('surplus_point', - 10)->default(0.00)->comment('剩余数量'); - $table->decimal('once_unit', - 10)->default(0.00)->comment('每次赠送数量'); - $table->decimal('last_point', - 10)->default(0.00)->comment('最后一次赠送数量'); - $table->boolean('status')->nullable()->default(0)->comment('1已完成'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_point_queue` comment '积分--积分队列'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_point_queue'); - } -} diff --git a/database/migrations/2019_03_28_172223_create_ims_yz_point_queue_log_table.php b/database/migrations/2019_03_28_172223_create_ims_yz_point_queue_log_table.php deleted file mode 100644 index 669ef4df..00000000 --- a/database/migrations/2019_03_28_172223_create_ims_yz_point_queue_log_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('uid')->comment('会员ID'); - $table->integer('queue_id')->comment('积分队列ID'); - $table->decimal('amount', 14)->comment('赠送数量'); - $table->decimal('point_total', - 10)->default(0.00)->comment('赠送积分总数'); - $table->decimal('finish_point', - 10)->default(0.00)->comment('完成数量'); - $table->decimal('surplus_point', - 10)->default(0.00)->comment('剩余数量'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_point_queue_log` comment '积分--队列明细表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_point_queue_log'); - } - -} diff --git a/database/migrations/2019_04_04_160355_create_ims_yz_qrcode_table.php b/database/migrations/2019_04_04_160355_create_ims_yz_qrcode_table.php deleted file mode 100644 index 74e65786..00000000 --- a/database/migrations/2019_04_04_160355_create_ims_yz_qrcode_table.php +++ /dev/null @@ -1,51 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('acid')->default(0)->nullable(); - $table->string('type')->default('')->nullable(); - $table->integer('extra')->default(0)->nullable(); - $table->integer('qrcid')->default(0)->nullable()->comment('场景值'); - $table->string('scene_str')->default('')->nullable()->comment('用来存储营关联的销码日志ID,营销码日志表不做一对多. 定时任务自动清理30天之后的记录'); - $table->string('name')->default('')->nullable()->comment('用来定时清理营销码记录的标识'); - $table->string('keyword')->default('')->nullable()->comment('关键字'); - $table->integer('model')->default(0)->nullable()->comment('1临时二维码,2永久二维码'); - $table->string('ticket')->default('')->nullable()->comment('微信返回的临时票据,用于在获取授权链接时作为参数传入'); - $table->string('url')->default('')->nullable()->comment('微信返回的地址'); - $table->integer('expire')->default(0)->nullable()->comment('期限'); - $table->integer('subnum')->default(0)->nullable(); - $table->integer('createtime')->default(0)->nullable(); - $table->integer('status')->default(0)->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_qrcode comment '商城--微擎框架的二维码数据表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_qrcode')) { - Schema::dropIfExists('yz_qrcode'); - } - } -} diff --git a/database/migrations/2019_04_04_161601_create_ims_yz_qrcode_stat_table.php b/database/migrations/2019_04_04_161601_create_ims_yz_qrcode_stat_table.php deleted file mode 100644 index 9d2d1c81..00000000 --- a/database/migrations/2019_04_04_161601_create_ims_yz_qrcode_stat_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('acid')->default(0)->nullable(); - $table->integer('qid')->default(0)->nullable()->comment('二维码id'); - $table->string('openid')->default('')->nullable()->comment('微信openid'); - $table->integer('type')->default(0)->nullable()->comment('类型'); - $table->integer('qrcid')->default(0)->nullable()->comment('场景值'); - $table->string('scene_str')->default('')->nullable()->comment('用来存储营关联的销码日志ID,营销码日志表不做一对多. 定时任务自动清理30天之后的记录'); - $table->string('name')->default('')->nullable()->comment('用来定时清理营销码记录的标识'); - $table->integer('createtime')->default(0)->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_qrcode_stat comment '商城--扫码记录表表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_qrcode_stat')) { - Schema::dropIfExists('yz_qrcode_stat'); - } - } -} diff --git a/database/migrations/2019_04_15_145300_change_default_ed_money_to_ims_yz_goods_sale_table.php b/database/migrations/2019_04_15_145300_change_default_ed_money_to_ims_yz_goods_sale_table.php deleted file mode 100644 index df69f7b5..00000000 --- a/database/migrations/2019_04_15_145300_change_default_ed_money_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,43 +0,0 @@ -string('ed_money', 10)->nullable()->change(); - $table->string('ed_num', 10)->nullable()->change(); - $table->string('max_once_point', 10)->nullable()->change(); - } - if (!\Illuminate\Support\Facades\Schema::hasColumn('yz_goods_sale', 'created_at')) { - - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - } - }); - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_04_15_145300_update_to_ims_yz_goods_sale_table.php b/database/migrations/2019_04_15_145300_update_to_ims_yz_goods_sale_table.php deleted file mode 100644 index 6a81ad5f..00000000 --- a/database/migrations/2019_04_15_145300_update_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,29 +0,0 @@ -update(['ed_money'=>'']); - \app\frontend\models\goods\Sale::where('ed_num',0)->update(['ed_num'=>'']); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_04_17_115424_create_membership_infomattion_log.php b/database/migrations/2019_04_17_115424_create_membership_infomattion_log.php deleted file mode 100644 index 50c99bd2..00000000 --- a/database/migrations/2019_04_17_115424_create_membership_infomattion_log.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('uid'); - $table->string('old_data')->nullable()->comment('用户修改前信息'); - $table->string('session_id')->nullable()->comment('session_id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_membership_infomattion_log comment '会员信息修改记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_membership_infomattion_log'); - } -} diff --git a/database/migrations/2019_04_18_162734_add_share_page_deail_member_relation.php b/database/migrations/2019_04_18_162734_add_share_page_deail_member_relation.php deleted file mode 100644 index 7479bc0d..00000000 --- a/database/migrations/2019_04_18_162734_add_share_page_deail_member_relation.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('share_page_deail')->default(0)->comment('0:显示1:不显示'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_04_23_135825_min_app_template_message.php b/database/migrations/2019_04_23_135825_min_app_template_message.php deleted file mode 100644 index f6bd2828..00000000 --- a/database/migrations/2019_04_23_135825_min_app_template_message.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->string('title')->comment('模板标题'); - $table->string('template_id', 45)->comment('微信模板ID'); - $table->text('data', 65535)->nullable()->comment('模板参数'); - $table->integer('is_default')->nullable()->comment('是否显示:1是,0否'); - $table->integer('is_open')->default(0)->comment('是否开启哦:1是,0否'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_mini_app_template_message comment '微信小程序消息模板表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_mini_app_template_message'); - } -} diff --git a/database/migrations/2019_04_24_151910_add_form_id.php b/database/migrations/2019_04_24_151910_add_form_id.php deleted file mode 100644 index cc0cf9db..00000000 --- a/database/migrations/2019_04_24_151910_add_form_id.php +++ /dev/null @@ -1,43 +0,0 @@ -string('formId')->nullable(); - $table->string('formId_create_time')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_mini_app')) { - if (Schema::hasColumn('yz_member_mini_app', 'formId')) { - Schema::table('yz_member_mini_app', function (Blueprint $table) { - $table->dropColumn('formId_create_time'); - $table->dropColumn('formId'); - }); - } - } - // - } -} diff --git a/database/migrations/2019_04_25_143541_add_pay_count_to_yz_member_lower_order.php b/database/migrations/2019_04_25_143541_add_pay_count_to_yz_member_lower_order.php deleted file mode 100644 index adaf8679..00000000 --- a/database/migrations/2019_04_25_143541_add_pay_count_to_yz_member_lower_order.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('pay_count')->default(0)->nullable()->comment('团队支付人数'); - } - if (!Schema::hasColumn('yz_member_lower_order', 'team_count')) { - $table->integer('team_count')->default(0)->nullable()->comment('团队总人数'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_04_26_173613_create_ims_yz_order_sent_job_table.php b/database/migrations/2019_04_26_173613_create_ims_yz_order_sent_job_table.php deleted file mode 100644 index 12869d03..00000000 --- a/database/migrations/2019_04_26_173613_create_ims_yz_order_sent_job_table.php +++ /dev/null @@ -1,46 +0,0 @@ -increments('id'); - $table->enum('status', ['waiting','finished','failed']); - $table->integer('order_id')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_sent_job` comment'订单--发货队列情况'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_sent_job')) { - - Schema::drop('yz_order_sent_job'); - } - } - -} diff --git a/database/migrations/2019_05_05_143346_add_new_data_to_yz_membership_infomattion_log_table.php b/database/migrations/2019_05_05_143346_add_new_data_to_yz_membership_infomattion_log_table.php deleted file mode 100644 index 13272b55..00000000 --- a/database/migrations/2019_05_05_143346_add_new_data_to_yz_membership_infomattion_log_table.php +++ /dev/null @@ -1,37 +0,0 @@ -string('new_data')->nullable()->comment('用户修改后信息'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_membership_infomattion_log', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2019_05_06_174029_add_poundage_to_ims_yz_point_transfer.php b/database/migrations/2019_05_06_174029_add_poundage_to_ims_yz_point_transfer.php deleted file mode 100644 index d20a9a4e..00000000 --- a/database/migrations/2019_05_06_174029_add_poundage_to_ims_yz_point_transfer.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('poundage')->nullable()->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_point_transfer'); - } -} diff --git a/database/migrations/2019_05_06_183349_create_teamOrder.php b/database/migrations/2019_05_06_183349_create_teamOrder.php deleted file mode 100644 index a95e8ff2..00000000 --- a/database/migrations/2019_05_06_183349_create_teamOrder.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->integer('team_order_quantity')->default(0)->comment('团队下线订单数'); - $table->integer('team_order_amount')->default(0)->comment('团队下线订单金额'); - $table->integer('pay_count')->default(0)->nullable()->comment('团队支付人数'); - $table->integer('team_count')->default(0)->nullable()->comment('团队总人数'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_team_order_statistics comment '订单--团队订单统计表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_14_100615_update_dispatc_first_piece_price.php b/database/migrations/2019_05_14_100615_update_dispatc_first_piece_price.php deleted file mode 100644 index 41ee43c9..00000000 --- a/database/migrations/2019_05_14_100615_update_dispatc_first_piece_price.php +++ /dev/null @@ -1,35 +0,0 @@ -decimal('first_piece_price',14)->nullable()->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_14_114853_update_goods_dispatch_dispatc_price.php b/database/migrations/2019_05_14_114853_update_goods_dispatch_dispatc_price.php deleted file mode 100644 index 0aa0d771..00000000 --- a/database/migrations/2019_05_14_114853_update_goods_dispatch_dispatc_price.php +++ /dev/null @@ -1,35 +0,0 @@ -decimal('dispatch_price',14)->nullable()->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_14_152940_add_message_template_news_link.php b/database/migrations/2019_05_14_152940_add_message_template_news_link.php deleted file mode 100644 index f6baa202..00000000 --- a/database/migrations/2019_05_14_152940_add_message_template_news_link.php +++ /dev/null @@ -1,36 +0,0 @@ -string('news_link')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_17_153556_update_goods_dispatch_another_piece_price.php b/database/migrations/2019_05_17_153556_update_goods_dispatch_another_piece_price.php deleted file mode 100644 index bb94067b..00000000 --- a/database/migrations/2019_05_17_153556_update_goods_dispatch_another_piece_price.php +++ /dev/null @@ -1,36 +0,0 @@ -decimal('another_piece_price',14)->nullable()->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_22_155129_create_yz_balance_covert_Love_table.php b/database/migrations/2019_05_22_155129_create_yz_balance_covert_Love_table.php deleted file mode 100644 index 623de1bf..00000000 --- a/database/migrations/2019_05_22_155129_create_yz_balance_covert_Love_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id')->comment('会员ID'); - $table->integer('covert_amount')->comment('转化金额'); - $table->integer('status')->comment('转化状态'); - $table->string('order_sn', 23)->default('')->comment('订单号'); - $table->string('remark', 30)->default('')->comment('备注'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_balance_covert_love comment '财务--余额转换爱心值log表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_22_174303_add_service_fee.php b/database/migrations/2019_05_22_174303_add_service_fee.php deleted file mode 100644 index ec515d58..00000000 --- a/database/migrations/2019_05_22_174303_add_service_fee.php +++ /dev/null @@ -1,35 +0,0 @@ -decimal('serviceFee',14)->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_24_102640_create_yz_order_coupon_return.php b/database/migrations/2019_05_24_102640_create_yz_order_coupon_return.php deleted file mode 100644 index e3065354..00000000 --- a/database/migrations/2019_05_24_102640_create_yz_order_coupon_return.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('order_coupon_id')->default(0)->comment('订单优惠券id'); - $table->integer('return_time')->default(0)->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_coupon_return` comment'订单--返还优惠券记录'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_coupon_return'); - } -} diff --git a/database/migrations/2019_05_24_144547_create_ims_yz_order_fee_table.php b/database/migrations/2019_05_24_144547_create_ims_yz_order_fee_table.php deleted file mode 100644 index c1e8ff42..00000000 --- a/database/migrations/2019_05_24_144547_create_ims_yz_order_fee_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id'); - $table->string('fee_code', 50)->default('')->comment('手续费码'); - $table->string('name', 100)->default('')->comment('名称'); - $table->decimal('amount', 10)->default(0.00)->comment('金额'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_fee` comment'订单--手续费记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (\Schema::hasTable('yz_order_fee')) { - Schema::drop('yz_order_fee'); - } - } - -} diff --git a/database/migrations/2019_05_24_154225_add_fee_amount_to_yz_order.php b/database/migrations/2019_05_24_154225_add_fee_amount_to_yz_order.php deleted file mode 100644 index 998ed543..00000000 --- a/database/migrations/2019_05_24_154225_add_fee_amount_to_yz_order.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('fee_amount', 14)->default(0.00); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_05_28_143246_add_ims_yz_setting_table.php b/database/migrations/2019_05_28_143246_add_ims_yz_setting_table.php deleted file mode 100644 index 6acad926..00000000 --- a/database/migrations/2019_05_28_143246_add_ims_yz_setting_table.php +++ /dev/null @@ -1,159 +0,0 @@ -table) && \YunShop::app()->uniacid) { - // 商城 - $shop = \Setting::get('shop.shop'); - if (!$shop) { - \Setting::set('shop.shop', [ - 'close' => 0, - 'name' => '', - 'logo' => '', - 'signimg' => '', - 'achievement' => 0, - 'cservice' => '', - 'copyright' => '', - 'credit' => '余额', - 'credit1' => '' - ]); - } - - // 会员 - $member = \Setting::get('shop.member'); - if (!$member) { - \Setting::set('shop.member', [ - 'headimg' => '', - 'level_name' => '普通会员', - 'display_page' => 0, - 'level_type' => 0, - 'level_after' => 0, - 'term' => 0, - 'is_bind_mobile' => 0, - 'show_balance' => 0, - 'is_invite' => 0, - 'required' => 0, - 'invite_page' => 0, - 'is_custom' => 0, - 'custom_title' => '', - 'form_id' => 0, - 'get_register' => 0, - 'Close_describe' => '', - 'wechat_login_mode' => 0 - ]); - } - - // 订单 - $order = \Setting::get('shop.order'); - if (!$order) { - \Setting::set('shop.order', [ - 'paid_process' => 0, - 'receive_process' => 0 - ]); - } - - // 分类 - $category = \Setting::get('shop.category'); - if (!$category) { - \Setting::set('shop.category', [ - 'cat_level' => 2, - 'cat_adv_img' => '', - 'cat_adv_url' => '' - ]); - } - - // 短信 - $sms = \Setting::get('shop.sms'); - if (!$sms) { - \Setting::set('shop.sms', [ - 'status' => 0, - 'type' => 1, - 'account' => '', - 'password' => '', - 'account2' => '', - 'password2' => '', - 'appkey' => '', - 'secret' => '', - 'signname' => '', - 'templateCode' => '', - 'product' => '', - 'templateCodeForget' => '', - 'forget' => '', - 'aly_appkey' => '', - 'aly_secret' => '', - 'aly_signname' => '', - 'aly_templateCode' => '', - 'aly_templateCodeForget' => '' - ]); - } - - // 优惠券 - $coupon = \Setting::get('shop.coupon'); - if (!$coupon) { - \Setting::set('shop.coupon', [ - 'delayed' => '', - 'send_times' => 0, - 'every_day' => 0, - 'expire' => '' - ]); - } - - // 会员资料表单 - $form = \Setting::get('shop.form'); - if (!$form) { - \Setting::set('shop.form', json_encode([ - 'base' => [ - 'sex' => 0, - 'address' => 0, - 'birthday' => 0, - ], - 'form' => [] - ])); - } - - // 注册协议 - $protocol = \Setting::get('shop.protocol'); - if (!$protocol) { - \Setting::set('shop.protocol', [ - 'protocol' => 0, - 'content' => '', - ]); - } - - // 物流查询 - $express_info = \Setting::get('shop.express_info'); - if (!$express_info) { - \Setting::set('shop.express_info', [ - 'KDN' => [ - 'express_api' => 1002, - 'eBusinessID' => '', - 'appKey' => '' - ] - ]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_setting'); - } -} diff --git a/database/migrations/2019_05_29_145300_change_default_discount_value_to_ims_yz_goods_discount_table.php b/database/migrations/2019_05_29_145300_change_default_discount_value_to_ims_yz_goods_discount_table.php deleted file mode 100644 index 026d8dc9..00000000 --- a/database/migrations/2019_05_29_145300_change_default_discount_value_to_ims_yz_goods_discount_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('discount_value', 10)->nullable()->change(); - } - }); - \Illuminate\Support\Facades\DB::table('yz_goods_discount')->where('discount_value', 0)->update(['discount_value' => '']); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_05_30_170608_create_yz_synchronized_binder_table.php b/database/migrations/2019_05_30_170608_create_yz_synchronized_binder_table.php deleted file mode 100644 index c2e8116e..00000000 --- a/database/migrations/2019_05_30_170608_create_yz_synchronized_binder_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable()->default(0); - $table->integer('old_uid')->nullable()->default(0)->comment('fans表修改前的uid'); - $table->integer('new_uid')->nullable()->default(0)->comment('fans表修改后的uid'); - $table->integer('old_credit1')->nullable()->default(0)->comment('增加前的积分'); - $table->integer('old_credit2')->nullable()->default(0)->comment('增加前的余额'); - $table->integer('add_credit1')->nullable()->default(0)->comment('增加的积分'); - $table->integer('add_credit2')->nullable()->default(0)->comment('增加的余额'); - $table->string('old_mobile')->nullable()->default(0)->comment('修改前的mobile'); - $table->string('new_mobile')->nullable()->default(0)->comment('修改后的mobile'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix() - ."yz_synchronized_binder` comment '会员--会员绑定手机合并记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_synchronized_binder'); - } -} diff --git a/database/migrations/2019_05_30_172348_add_token_to_yz_member_table.php b/database/migrations/2019_05_30_172348_add_token_to_yz_member_table.php deleted file mode 100644 index a361eac9..00000000 --- a/database/migrations/2019_05_30_172348_add_token_to_yz_member_table.php +++ /dev/null @@ -1,64 +0,0 @@ -string('access_token_1', 512)->default(0); - } - - if (!Schema::hasColumn('yz_member', 'access_expires_in_1')) { - $table->integer('access_expires_in_1')->default(0); - } - - if (!Schema::hasColumn('yz_member', 'refresh_token_1')) { - $table->string('refresh_token_1', 512)->default(0); - } - - if (!Schema::hasColumn('yz_member', 'refresh_expires_in_1')) { - $table->integer('refresh_expires_in_1')->default(0); - } - - if (!Schema::hasColumn('yz_member', 'access_token_2')) { - $table->string('access_token_2', 512)->default(0); - } - - if (!Schema::hasColumn('yz_member', 'access_expires_in_2')) { - $table->integer('access_expires_in_2')->default(0); - } - - if (!Schema::hasColumn('yz_member', 'refresh_token_2')) { - $table->string('refresh_token_2', 512)->default(0); - } - - if (!Schema::hasColumn('yz_member', 'refresh_expires_in_2')) { - $table->integer('refresh_expires_in_2')->default(0); - - $table->index(['access_token_1', 'member_id']); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_06_03_163831_create_yz_api_access_token_table.php b/database/migrations/2019_06_03_163831_create_yz_api_access_token_table.php deleted file mode 100644 index c98fc97d..00000000 --- a/database/migrations/2019_06_03_163831_create_yz_api_access_token_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->string('access_token')->nullable()->comment('访问令牌'); - $table->integer('expires_at')->nullable()->comment('有效期至'); - $table->boolean('revoked')->comment('是否撤回'); - $table->timestamps(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_api_access_token comment 'api--api访问令牌'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_api_access_token'); - } -} diff --git a/database/migrations/2019_06_03_163831_create_yz_api_refresh_token_table.php b/database/migrations/2019_06_03_163831_create_yz_api_refresh_token_table.php deleted file mode 100644 index 68dcc677..00000000 --- a/database/migrations/2019_06_03_163831_create_yz_api_refresh_token_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->string('refresh_token')->nullable()->comment('刷新令牌'); - $table->integer('expires_at')->nullable()->comment('有效期至'); - $table->boolean('revoked')->comment('是否撤回'); - $table->timestamps(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_api_refresh_token comment 'api--刷新令牌'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_api_refresh_token'); - } -} diff --git a/database/migrations/2019_06_06_102619_update_yz_setting_column.php b/database/migrations/2019_06_06_102619_update_yz_setting_column.php deleted file mode 100644 index 8b1ae588..00000000 --- a/database/migrations/2019_06_06_102619_update_yz_setting_column.php +++ /dev/null @@ -1,35 +0,0 @@ -longText('value')->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_06_13_102621_create_ims_yz_order_coin_exchange_table.php b/database/migrations/2019_06_13_102621_create_ims_yz_order_coin_exchange_table.php deleted file mode 100644 index d272fea8..00000000 --- a/database/migrations/2019_06_13_102621_create_ims_yz_order_coin_exchange_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->integer('uid')->nullable()->comment('会员ID'); - $table->string('code')->nullable()->comment('抵扣标识'); - $table->string('name')->nullable()->comment('抵扣名称'); - $table->decimal('amount',14,2)->nullable()->comment('抵扣金额'); - $table->decimal('coin',14,2)->nullable()->comment('抵扣值'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index(['order_id']); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_coin_exchange` comment'订单--全额抵扣记录'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_order_coin_exchange'); - } -} diff --git a/database/migrations/2019_06_13_102621_create_ims_yz_order_goods_coin_exchange_table.php b/database/migrations/2019_06_13_102621_create_ims_yz_order_goods_coin_exchange_table.php deleted file mode 100644 index b1d84917..00000000 --- a/database/migrations/2019_06_13_102621_create_ims_yz_order_goods_coin_exchange_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('order_goods_id')->nullable(); - $table->integer('uid')->nullable(); - $table->string('code')->nullable(); - $table->decimal('amount',14,2)->nullable(); - $table->decimal('coin',14,2)->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index(['order_goods_id']); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_goods_coin_exchange` comment'订单--商品全额抵扣记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_order_goods_coin_exchange'); - } -} diff --git a/database/migrations/2019_06_14_170905_add_yz_member_relation_reward_points.php b/database/migrations/2019_06_14_170905_add_yz_member_relation_reward_points.php deleted file mode 100644 index 3f4079d8..00000000 --- a/database/migrations/2019_06_14_170905_add_yz_member_relation_reward_points.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('reward_points')->default(0); - }); - } - if (!Schema::hasColumn('yz_member_relation', 'maximum_number')) { - Schema::table('yz_member_relation', function (Blueprint $table) { - $table->integer('maximum_number')->default(0); - }); - } - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member_relation', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2019_06_16_102620_add_all_point_deduct_to_ims_yz_goods_sale_table.php b/database/migrations/2019_06_16_102620_add_all_point_deduct_to_ims_yz_goods_sale_table.php deleted file mode 100644 index 833e44e9..00000000 --- a/database/migrations/2019_06_16_102620_add_all_point_deduct_to_ims_yz_goods_sale_table.php +++ /dev/null @@ -1,40 +0,0 @@ -decimal('all_point_deduct', 10)->nullable(); - } - if (!Schema::hasColumn('yz_goods_sale', 'has_all_point_deduct')) { - $table->integer('has_all_point_deduct')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('all_point_deduct'); - $table->integer('has_all_point_deduct'); - }); - } -} diff --git a/database/migrations/2019_06_16_102620_add_columns_to_ims_yz_order_goods_coin_exchange_table.php b/database/migrations/2019_06_16_102620_add_columns_to_ims_yz_order_goods_coin_exchange_table.php deleted file mode 100644 index e28108d7..00000000 --- a/database/migrations/2019_06_16_102620_add_columns_to_ims_yz_order_goods_coin_exchange_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('name')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order_goods_coin_exchange', function (Blueprint $table) { - $table->dropColumn('name'); - }); - } -} diff --git a/database/migrations/2019_06_16_102621_create_ims_yz_first_order_table.php b/database/migrations/2019_06_16_102621_create_ims_yz_first_order_table.php deleted file mode 100644 index 459d9c66..00000000 --- a/database/migrations/2019_06_16_102621_create_ims_yz_first_order_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('order_id') - ->nullable(); - $table->integer('uid') - ->nullable(); - $table->text('shop_order_set', 65535) - ->nullable(); - $table->integer('created_at') - ->nullable(); - $table->integer('updated_at') - ->nullable(); - $table->integer('deleted_at') - ->nullable(); - }); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_first_order'); - } -} diff --git a/database/migrations/2019_06_16_102622_add_goods_id_to_ims_yz_first_order_table.php b/database/migrations/2019_06_16_102622_add_goods_id_to_ims_yz_first_order_table.php deleted file mode 100644 index 9364195f..00000000 --- a/database/migrations/2019_06_16_102622_add_goods_id_to_ims_yz_first_order_table.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('goods_id')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_first_order', function (Blueprint $table) { - $table->integer('goods_id'); - }); - } -} diff --git a/database/migrations/2019_06_18_140102_add_column_in_app_user.php b/database/migrations/2019_06_18_140102_add_column_in_app_user.php deleted file mode 100644 index 65d930fa..00000000 --- a/database/migrations/2019_06_18_140102_add_column_in_app_user.php +++ /dev/null @@ -1,34 +0,0 @@ -string('role_name')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_06_18_161833_update_goods_id_column_in_member_level.php b/database/migrations/2019_06_18_161833_update_goods_id_column_in_member_level.php deleted file mode 100644 index 801bb790..00000000 --- a/database/migrations/2019_06_18_161833_update_goods_id_column_in_member_level.php +++ /dev/null @@ -1,34 +0,0 @@ -string('goods_id')->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_06_21_165645_create_yz_distribution_order.php b/database/migrations/2019_06_21_165645_create_yz_distribution_order.php deleted file mode 100644 index 8ad4aa8c..00000000 --- a/database/migrations/2019_06_21_165645_create_yz_distribution_order.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('uniacid')->default(0); - $table->integer('commission_order_num')->default(0)->comment('分销订单数'); - $table->decimal('commission_order_prices', 65)->default(0)->comment('分销订单业绩'); - $table->integer('team_people_num')->default(0)->comment('团队总人数'); - $table->decimal('team_commission_order_prices', 65)->default(0)->comment('团队分销订单业绩'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_distribution_order comment '分销订单统计表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_distribution_order'); - } -} diff --git a/database/migrations/2019_06_28_165200_create_yz_goods_edit_disable_table.php b/database/migrations/2019_06_28_165200_create_yz_goods_edit_disable_table.php deleted file mode 100644 index 828ada7f..00000000 --- a/database/migrations/2019_06_28_165200_create_yz_goods_edit_disable_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('goods_id')->comment('商品id'); - $table->string('message')->comment('提示信息,简述禁止编辑商品的原因,如:商品已参加XX活动,不可编辑,请等待XX活动结束!'); - $table->string('edit_key')->comment('关键字,通过该字段可区分一条记录!'); - - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_edit_disable comment '门店-收银台--商品禁止编辑记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_edit_disable')) { - Schema::drop('yz_goods_edit_disable'); - } - } -} diff --git a/database/migrations/2019_07_01_105904_create_website_info.php b/database/migrations/2019_07_01_105904_create_website_info.php deleted file mode 100644 index fd72b35b..00000000 --- a/database/migrations/2019_07_01_105904_create_website_info.php +++ /dev/null @@ -1,51 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable()->default(0); - $table->string('website_url')->nullable()->default(0)->comment('站点'); - $table->string('founder_account',50)->nullable()->default(0)->comment('创始人账号'); - $table->string('founder_password',50)->nullable()->default(0)->comment('创始人密码'); - $table->string('server_ip',50)->nullable()->default(0)->comment('服务器IP'); - $table->string('root_password',50)->nullable()->default(0)->comment('服务器root密码'); - $table->string('ssh_port',50)->nullable()->default(0)->comment('ssh 端口'); - $table->string('database_address',50)->nullable()->default(0)->comment('数据库访问地址'); - $table->string('database_username',50)->nullable()->default(0)->comment('数据库用户名'); - $table->string('database_password',50)->nullable()->default(0)->comment('数据库密码'); - $table->string('root_directory',50)->nullable()->default(0)->comment('网站根目录'); - $table->string('qq',50)->nullable()->default(0)->comment('联系qq'); - $table->string('mobile',50)->nullable()->default(0)->comment('联系手机号'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_website_info comment '工单管理--加密信息'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_02_094619_add_point_love_set.php b/database/migrations/2019_07_02_094619_add_point_love_set.php deleted file mode 100644 index 4f80ed18..00000000 --- a/database/migrations/2019_07_02_094619_add_point_love_set.php +++ /dev/null @@ -1,35 +0,0 @@ -string('transfer_love')->default(''); - $table->string('transfer_integral')->default(''); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_03_153836_update_yz_member_month_order.php b/database/migrations/2019_07_03_153836_update_yz_member_month_order.php deleted file mode 100644 index fb0e48a4..00000000 --- a/database/migrations/2019_07_03_153836_update_yz_member_month_order.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('member_id')->default(0)->index('idx_member_id')->change(); - }); - } catch (\Exception $e) { - - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_05_151900_remove_third_level.php b/database/migrations/2019_07_05_151900_remove_third_level.php deleted file mode 100644 index 2e4d667b..00000000 --- a/database/migrations/2019_07_05_151900_remove_third_level.php +++ /dev/null @@ -1,228 +0,0 @@ -uniacid = $u->uniacid; - \Setting::$uniqueAccountId = $u->uniacid; - $this->updateCommission(); - $this->updateMicro(); - $this->updateClock(); - $this->updateCar(); - $this->updateHotel(); - $this->updateStore(); - $this->updateLove(); - $this->updateAsset(); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } - - public function updateCommission() - { - if (app('plugins')->isEnabled('commission')) { - $plugin = \Setting::get('plugin.commission'); - if (!$plugin) { - return; - } - if ($plugin['goods_detail_level'] == 3) { - $plugin['goods_detail_level'] = 2; - } - if ($plugin['level'] == 3) { - $plugin['level'] = 2; - unset($plugin['third_level']); - } - \Setting::set('plugin.commission', $plugin); - $commissionNotice = \Setting::get('plugin.commission_notice'); - $temp_id = $commissionNotice['commission_upgrade']; - if (!is_null( \app\common\models\notice\MessageTemp::find($temp_id))) { - \app\common\models\notice\MessageTemp::where('id',$temp_id) ->delete(); - } - } - } - - public function updateMicro() - { - if (app('plugins')->isEnabled('micro')) { - $plugin = \Setting::get('plugin.micro'); - if (!$plugin) { - return; - } - if ($plugin['agent_bonus_level'] >= 2 ) { - $plugin['agent_bonus_level'] = 1; - unset($plugin['bonus_third_level']); - unset($plugin['gold_second_level']); - } - unset($plugin['agent_gold_level']); - unset($plugin['gold_first_level']); - unset($plugin['gold_second_level']); - unset($plugin['gold_third_level']); - - \Setting::set('plugin.micro', $plugin); - } - } - - public function updateClock() - { - if (app('plugins')->isEnabled('clock-in')) { - $plugin = \Setting::get('plugin.clock_in'); - if (!$plugin) { - return; - } - if ($plugin['level'] == 3) { - $plugin['level'] = 2; - unset($plugin['third_level']); - } - foreach ($plugin['commission_level'] as $key => $level) { - unset($plugin['commission_level'][$key]['third_level']); - } - \Setting::set('plugin.clock_in', $plugin); - } - - } - - public function updateCar() - { - if (app('plugins')->isEnabled('net-car')) { - $plugin = \Setting::get('plugin.net_car'); - - if (!$plugin) { - return; - } - unset($plugin['user_referrer_rate']['three']); - - \Setting::set('plugin.net_car', $plugin); - } - } - - public function updateStore() - { - if (app('plugins')->isEnabled('store-cashier')) { - $stores = \Yunshop\StoreCashier\common\models\StoreSetting::where('key','commission')->get(); - if ($stores->isEmpty()) { - return; - } - foreach ($stores as $store) { - $commission = $store->value; - - if ($commission['level'] == 3) { - $commission['level'] = 2; - unset($commission['third_level']); - } - foreach ($commission['rule'] as $key => $level) { - unset($commission['rule'][$key]['third_level_rate']); - } - $store->value = $commission; - $store->save(); - } - } - } - public function updateHotel() - { - if (app('plugins')->isEnabled('hotel')) { - $hotels = \Yunshop\Hotel\common\models\HotelSetting::where('key','commission')->get(); - if ($hotels->isEmpty()) { - return; - } - foreach ($hotels as $hotel) { - $commission = $hotel->value; - if ($commission['level'] == 3) { - $commission['level'] = 2; - unset($commission['third_level']); - } - foreach ($commission['rule'] as $key => $level) { - unset($commission['rule'][$key]['third_level_rate']); - } - $hotel->value = $commission; - $hotel->save(); - } - } - } - - public function updateLove() - { - if (app('plugins')->isEnabled('love')) { - $goods_love = \Yunshop\Love\Common\Models\GoodsLove::uniacid()->where('goods_id',96)->get(); - if (!$goods_love->isEmpty()) { - foreach ($goods_love as $love) { - $love->third_award_proportion = 0; - $love->third_award_fixed = 0; - if ($love->commission) { - $commission = unserialize($love->commission); - foreach ($commission['rule'] as $key => $level) { - unset($commission['rule'][$key]['third_level_rate']); - unset($commission['rule'][$key]['third_level_fixed']); - } - $love->commission = serialize($commission); - } - $love->save(); - } - } - $plugin = array_pluck(\Setting::getAllByGroup('Love')->toArray(), 'value', 'key'); - if ($plugin['third_award_proportion']) { - $plugin['third_award_proportion'] = 0; - } - if ($plugin['commission']) { - $plugin['commission'] = unserialize($plugin['commission']); - foreach ($plugin['commission']['rule'] as $key => $commission) { - unset($plugin['commission']['rule'][$key]['third_level_rate']); - } - $plugin['commission'] = serialize($plugin['commission']); - } - foreach ($plugin as $key => $item) { - \Setting::set('love.' . $key, $item); - } - } - } - - public function updateAsset() - { - if (app('plugins')->isEnabled('asset')) { - $assets = \Yunshop\Asset\Common\Models\AssetDigitizationModel::select(['goods_id','sell_goods'])->uniacid()->get(); - if (!$assets->isEmpty()) { - return; - } - $assets = $assets->toArray(); - $goods_id = array_column($assets,'goods_id'); - $sell_goods = array_column($assets, 'sell_goods'); - $love_goods = array_merge($goods_id, $sell_goods); - - if (app('plugins')->isEnabled('team-dividend')) { - \Yunshop\TeamDividend\models\GoodsTeamDividend::whereIn('goods_id',$goods_id)->delete(); - } - if (app('plugins')->isEnabled('commission')) { - \Yunshop\Commission\models\Commission::whereIn('goods_id',$goods_id)->delete(); - } - if (app('plugins')->isEnabled('area-dividend')) { - \Yunshop\AreaDividend\models\AreaDividendGoods::whereIn('goods_id',$goods_id)->delete(); - } - if (app('plugins')->isEnabled('love')) { - \Yunshop\Love\Common\Models\GoodsLove::whereIn('goods_id',$love_goods)->delete(); - } - - } - } - -} diff --git a/database/migrations/2019_07_10_172411_add_token_to_yz_member_min_table.php b/database/migrations/2019_07_10_172411_add_token_to_yz_member_min_table.php deleted file mode 100644 index 1c7aaf18..00000000 --- a/database/migrations/2019_07_10_172411_add_token_to_yz_member_min_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('access_token', 1000)->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_11_095300_change_time_fields_default_value_to_yz_order_refund_table.php b/database/migrations/2019_07_11_095300_change_time_fields_default_value_to_yz_order_refund_table.php deleted file mode 100644 index c50fc640..00000000 --- a/database/migrations/2019_07_11_095300_change_time_fields_default_value_to_yz_order_refund_table.php +++ /dev/null @@ -1,63 +0,0 @@ -integer('create_time')->default(null)->nullable()->change(); - $table->integer('refund_time')->default(null)->nullable()->change(); - $table->integer('operate_time')->default(null)->nullable()->change(); - $table->integer('send_time')->default(null)->nullable()->change(); - $table->integer('return_time')->default(null)->nullable()->change(); - }); - } - if (\Illuminate\Support\Facades\Schema::hasTable('yz_return_express')) { - \Illuminate\Support\Facades\Schema::table('yz_return_express', - function (Blueprint $table) { - $table->integer('created_at')->default(null)->nullable()->change(); - $table->integer('updated_at')->default(null)->nullable()->change(); - }); - } - if (\Illuminate\Support\Facades\Schema::hasTable('yz_resend_express')) { - \Illuminate\Support\Facades\Schema::table('yz_resend_express', - function (Blueprint $table) { - $table->integer('created_at')->default(null)->nullable()->change(); - $table->integer('updated_at')->default(null)->nullable()->change(); - }); - } - - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set create_time = null where create_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set refund_time = null where refund_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set operate_time = null where operate_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set send_time = null where send_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set return_time = null where return_time = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_order_refund set end_time = null where return_time = 0'); - - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_return_express set created_at = null where created_at = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_return_express set updated_at = null where updated_at = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_resend_express set created_at = null where created_at = 0'); - \Illuminate\Support\Facades\DB::update('update ' . app('db')->getTablePrefix() . 'yz_resend_express set updated_at = null where updated_at = 0'); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_07_12_113226_insert_ims_yz_setting_supervisord_table.php b/database/migrations/2019_07_12_113226_insert_ims_yz_setting_supervisord_table.php deleted file mode 100644 index bd1adad1..00000000 --- a/database/migrations/2019_07_12_113226_insert_ims_yz_setting_supervisord_table.php +++ /dev/null @@ -1,37 +0,0 @@ -insert([ - 'uniacid' => 0, - 'group' => 'shop', - 'key' => 'supervisor', - 'type' => 'string', - 'value' => 'http://127.0.0.1', - ]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_setting'); - } -} diff --git a/database/migrations/2019_07_15_151900_remove_third_level_v2.php b/database/migrations/2019_07_15_151900_remove_third_level_v2.php deleted file mode 100644 index 37fe6e88..00000000 --- a/database/migrations/2019_07_15_151900_remove_third_level_v2.php +++ /dev/null @@ -1,45 +0,0 @@ -uniacid = $u->uniacid; - \Setting::$uniqueAccountId = $u->uniacid; - $info = \Setting::get('relation_base'); - if ($info) { - if ($info['relation_level'][2]) { - unset($info['relation_level'][2]); - } - if ($info['relation_level']['name3']) { - unset($info['relation_level']['name3']); - } - $request = Setting::set('relation_base',$info); - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } - -} diff --git a/database/migrations/2019_07_18_140021_create_ims_yz_excel_recharge_records_table.php b/database/migrations/2019_07_18_140021_create_ims_yz_excel_recharge_records_table.php deleted file mode 100644 index e805215d..00000000 --- a/database/migrations/2019_07_18_140021_create_ims_yz_excel_recharge_records_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('total')->default(0)->comment('总个数'); - $table->decimal('amount', 14)->default(0.00)->comment('总数量'); - $table->integer('failure')->default(0)->comment('失败数'); - $table->decimal('success', 14)->default(0.00)->comment('成功数'); - $table->string('source', 45)->nullable(); - $table->string('remark', 100)->nullable()->comment('备注信息'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_excel_recharge_records comment '批量充值记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - //Schema::drop('ims_yz_excel_recharge_records'); - } - -} diff --git a/database/migrations/2019_07_18_140147_create_ims_yz_excel_recharge_detail_table.php b/database/migrations/2019_07_18_140147_create_ims_yz_excel_recharge_detail_table.php deleted file mode 100644 index 02e63c08..00000000 --- a/database/migrations/2019_07_18_140147_create_ims_yz_excel_recharge_detail_table.php +++ /dev/null @@ -1,42 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('recharge_id')->comment('批量充值记录ID'); - $table->integer('member_id')->comment('会员ID'); - $table->decimal('amount', 14)->comment('充值总金额'); - $table->string('remark', 100)->nullable()->comment('充值说明'); - $table->boolean('status')->default(0)->comment('充值状态1成功0失败'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_excel_recharge_detail comment '批量充值记录详情表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_excel_recharge_detail'); - } - -} diff --git a/database/migrations/2019_07_24_134900_add_index_openid_to_yz_member_table.php b/database/migrations/2019_07_24_134900_add_index_openid_to_yz_member_table.php deleted file mode 100644 index 5162ac13..00000000 --- a/database/migrations/2019_07_24_134900_add_index_openid_to_yz_member_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index('yz_openid'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_25_161833_update_order_id_in_order_income_count.php b/database/migrations/2019_07_25_161833_update_order_id_in_order_income_count.php deleted file mode 100644 index 92447914..00000000 --- a/database/migrations/2019_07_25_161833_update_order_id_in_order_income_count.php +++ /dev/null @@ -1,38 +0,0 @@ -integer('order_id')->change(); - $table->index('order_id'); - $table->index('uniacid'); - $table->index('uid'); - $table->index('status'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_29_133105_add_yz_order_pay_pay_sn_index_table.php b/database/migrations/2019_07_29_133105_add_yz_order_pay_pay_sn_index_table.php deleted file mode 100644 index 52a90f5f..00000000 --- a/database/migrations/2019_07_29_133105_add_yz_order_pay_pay_sn_index_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index('pay_sn'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_29_134053_add_yz_balance_serial_number_index_table.php b/database/migrations/2019_07_29_134053_add_yz_balance_serial_number_index_table.php deleted file mode 100644 index 982bc642..00000000 --- a/database/migrations/2019_07_29_134053_add_yz_balance_serial_number_index_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index('serial_number'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_29_143135_add_yz_goods_limitbuy_goods_id_index_table.php b/database/migrations/2019_07_29_143135_add_yz_goods_limitbuy_goods_id_index_table.php deleted file mode 100644 index 7ac673db..00000000 --- a/database/migrations/2019_07_29_143135_add_yz_goods_limitbuy_goods_id_index_table.php +++ /dev/null @@ -1,33 +0,0 @@ -index('goods_id'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_29_163143_add_yz_member_income_to_member_id_index_table.php b/database/migrations/2019_07_29_163143_add_yz_member_income_to_member_id_index_table.php deleted file mode 100644 index 4b0ab676..00000000 --- a/database/migrations/2019_07_29_163143_add_yz_member_income_to_member_id_index_table.php +++ /dev/null @@ -1,33 +0,0 @@ -index('member_id'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_07_29_170222_add__to_yz_member_min_app_to_open_id_index_table.php b/database/migrations/2019_07_29_170222_add__to_yz_member_min_app_to_open_id_index_table.php deleted file mode 100644 index d6f81d0c..00000000 --- a/database/migrations/2019_07_29_170222_add__to_yz_member_min_app_to_open_id_index_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index('openid'); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_08_05_161833_drop_index_in_order_income_count.php b/database/migrations/2019_08_05_161833_drop_index_in_order_income_count.php deleted file mode 100644 index 5900da6b..00000000 --- a/database/migrations/2019_08_05_161833_drop_index_in_order_income_count.php +++ /dev/null @@ -1,52 +0,0 @@ -getDoctrineSchemaManager(); - $preFix = Schema::getConnection()->getTablePrefix(); - $indexesFound = $sm->listTableIndexes($preFix . 'yz_order_income_count'); - - if (array_key_exists("idx_order", $indexesFound)) { - $table->dropIndex('idx_order'); - } - }); - } - //重启队列 - /*$supervisor = app('supervisor'); - $supervisor->setTimeout(5000); // microseconds - $supervisor->restart();*/ - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } - - public function hasIndex($table, $name) - { - $conn = Schema::getConnection(); - $dbSchemaManager = $conn->getDoctrineSchemaManager(); - $doctrineTable = $dbSchemaManager->listTableDetails($table); - return $doctrineTable->hasIndex($name); - } - - -} diff --git a/database/migrations/2019_08_09_172411_add_job_id_to_yz_member_poster_table.php b/database/migrations/2019_08_09_172411_add_job_id_to_yz_member_poster_table.php deleted file mode 100644 index 39d794ca..00000000 --- a/database/migrations/2019_08_09_172411_add_job_id_to_yz_member_poster_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('job_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2019_08_14_183505_add_yz_goods_table.php b/database/migrations/2019_08_14_183505_add_yz_goods_table.php deleted file mode 100644 index c23e1a24..00000000 --- a/database/migrations/2019_08_14_183505_add_yz_goods_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('old_id')->nullable(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_08_21_170222_delete_disable_records_from_yz_options_table.php b/database/migrations/2019_08_21_170222_delete_disable_records_from_yz_options_table.php deleted file mode 100644 index 15b9198f..00000000 --- a/database/migrations/2019_08_21_170222_delete_disable_records_from_yz_options_table.php +++ /dev/null @@ -1,31 +0,0 @@ -where('enabled', 0)->delete(); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_09_09_144118_update_yz_goods_title.php b/database/migrations/2019_09_09_144118_update_yz_goods_title.php deleted file mode 100644 index ebf551df..00000000 --- a/database/migrations/2019_09_09_144118_update_yz_goods_title.php +++ /dev/null @@ -1,34 +0,0 @@ -string('title',300)->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_09_17_160454_uodate_yz_order_conpany_number_chang.php b/database/migrations/2019_09_17_160454_uodate_yz_order_conpany_number_chang.php deleted file mode 100644 index 1b209599..00000000 --- a/database/migrations/2019_09_17_160454_uodate_yz_order_conpany_number_chang.php +++ /dev/null @@ -1,35 +0,0 @@ -string('company_number',255)->nullable()->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_09_18_114104_add_introduce_to_yz_video_lecturer_table.php b/database/migrations/2019_09_18_114104_add_introduce_to_yz_video_lecturer_table.php deleted file mode 100644 index 681cb359..00000000 --- a/database/migrations/2019_09_18_114104_add_introduce_to_yz_video_lecturer_table.php +++ /dev/null @@ -1,28 +0,0 @@ -string('thirdStatus')->after('operator_id')->nullable()->default(1); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_balance', function (Blueprint $table) { - $table->dropColumn('thirdStatus'); - }); - } -} diff --git a/database/migrations/2019_09_19_100839_add_thirdStatus_into_point.php b/database/migrations/2019_09_19_100839_add_thirdStatus_into_point.php deleted file mode 100644 index 742072e4..00000000 --- a/database/migrations/2019_09_19_100839_add_thirdStatus_into_point.php +++ /dev/null @@ -1,32 +0,0 @@ -string('thirdStatus')->after('remark')->nullable()->default(1); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_point_log', function (Blueprint $table) { - $table->dropColumn('thirdStatus'); - }); - } -} diff --git a/database/migrations/2019_09_24_134310_add_scan_pay_to_yz_pay_type_table.php.php b/database/migrations/2019_09_24_134310_add_scan_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index 031e8f40..00000000 --- a/database/migrations/2019_09_24_134310_add_scan_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,35 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (38, \'微信扫码支付\', \'WechatScan\', \'shop.wechat_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0), - (39, \'微信人脸支付\', \'WechatFace\', \'shop.wechat_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0), - (40, \'支付宝扫码支付\', \'AlipayScan\', \'shop.alipay_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0), - (41, \'支付宝人脸支付\', \'AlipayFace\', \'shop.alipay_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2019_09_25_101736_add_description_to_yz_member_level_table.php b/database/migrations/2019_09_25_101736_add_description_to_yz_member_level_table.php deleted file mode 100644 index 1d8872a1..00000000 --- a/database/migrations/2019_09_25_101736_add_description_to_yz_member_level_table.php +++ /dev/null @@ -1,34 +0,0 @@ -text('description')->nullable()->comment('权益说明'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_10_12_105633_change_incometable_type_to_member_income.php b/database/migrations/2019_10_12_105633_change_incometable_type_to_member_income.php deleted file mode 100644 index d2fdd097..00000000 --- a/database/migrations/2019_10_12_105633_change_incometable_type_to_member_income.php +++ /dev/null @@ -1,34 +0,0 @@ -string('incometable_type', 100)->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_10_14_153447_add_column_to_ims_yz_comment_table.php b/database/migrations/2019_10_14_153447_add_column_to_ims_yz_comment_table.php deleted file mode 100644 index 1c73d635..00000000 --- a/database/migrations/2019_10_14_153447_add_column_to_ims_yz_comment_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('plugin_id')->nullable()->comment(''); - }); - } - if (!Schema::hasColumn('yz_comment', 'plugin_table_id')) { - Schema::table('yz_comment', function (Blueprint $table) { - $table->integer('plugin_table_id')->nullable()->comment('评论归属id?平台/门店'); - }); - } - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_task_reward_activity', function (Blueprint $table) { - $table->dropColumn('plugin_id'); - $table->dropColumn('plugin_table_id'); - }); - } -} diff --git a/database/migrations/2019_10_24_101736_add_team_performance_to_yz_member_level_table.php b/database/migrations/2019_10_24_101736_add_team_performance_to_yz_member_level_table.php deleted file mode 100644 index 581fd2fd..00000000 --- a/database/migrations/2019_10_24_101736_add_team_performance_to_yz_member_level_table.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('team_performance', 10)->nullable()->comment('团队业绩'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_10_30_173635_add_is_top_to_yz_uniacid_app_table.php b/database/migrations/2019_10_30_173635_add_is_top_to_yz_uniacid_app_table.php deleted file mode 100644 index 9a779819..00000000 --- a/database/migrations/2019_10_30_173635_add_is_top_to_yz_uniacid_app_table.php +++ /dev/null @@ -1,53 +0,0 @@ -tinyInteger('is_top')->nullable()->default(0)->comment('0不置顶, 1置顶'); - } - - if (!Schema::hasColumn('yz_uniacid_app', 'topped_at')) { - $table->integer('topped_at')->nullable()->default(0)->comment('置顶时间'); - } - - if (!Schema::hasColumn('yz_uniacid_app', 'admin_is_top')) { - $table->tinyInteger('admin_is_top')->nullable()->default(0)->comment('0不置顶, 1超级管理员置顶'); - } - - if (!Schema::hasColumn('yz_uniacid_app', 'admin_topped_at')) { - $table->integer('admin_topped_at')->nullable()->default(0)->comment('超级管理员置顶时间'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::table('yz_uniacid_app', function (Blueprint $table) { - // - $table->dropColumn('is_top'); - $table->dropColumn('topped_at'); - $table->dropColumn('admin_is_top'); - $table->dropColumn('admin_topped_at'); - }); - } -} diff --git a/database/migrations/2019_11_04_103336_create_ims_yz_member_douyin.php b/database/migrations/2019_11_04_103336_create_ims_yz_member_douyin.php deleted file mode 100644 index e6eaa477..00000000 --- a/database/migrations/2019_11_04_103336_create_ims_yz_member_douyin.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('douyin_id', true); - $table->integer('uniacid'); - $table->integer('member_id')->comment('登录会员ID'); - $table->string('openid', 50)->comment('抖音openid'); - $table->string('nickname', 20)->comment('昵称'); - $table->string('avatar')->comment('头像'); - $table->boolean('gender')->comment('性别0未知1男2女'); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_douyin comment '抖音登录记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::dropIfExists('yz_member_douyin'); - } -} diff --git a/database/migrations/2019_11_08_171446_yz_member_mini_formid.php b/database/migrations/2019_11_08_171446_yz_member_mini_formid.php deleted file mode 100644 index b6994321..00000000 --- a/database/migrations/2019_11_08_171446_yz_member_mini_formid.php +++ /dev/null @@ -1,35 +0,0 @@ -increments('id'); - $table->string('formid'); - $table->bigInteger('addtime'); - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_mini_formid'); - } -} diff --git a/database/migrations/2019_11_11_140134_change_type_to_ims_yz_withdraw.php b/database/migrations/2019_11_11_140134_change_type_to_ims_yz_withdraw.php deleted file mode 100644 index c32fa31f..00000000 --- a/database/migrations/2019_11_11_140134_change_type_to_ims_yz_withdraw.php +++ /dev/null @@ -1,34 +0,0 @@ -string('type', 100)->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_11_11_160016_add__is_hide_yz_brand.php b/database/migrations/2019_11_11_160016_add__is_hide_yz_brand.php deleted file mode 100644 index 32fadb4a..00000000 --- a/database/migrations/2019_11_11_160016_add__is_hide_yz_brand.php +++ /dev/null @@ -1,32 +0,0 @@ -tinyInteger('is_hide')->default(0); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_11_18_114016_create_ims_yz_order_deliver_table.php b/database/migrations/2019_11_18_114016_create_ims_yz_order_deliver_table.php deleted file mode 100644 index 02fed883..00000000 --- a/database/migrations/2019_11_18_114016_create_ims_yz_order_deliver_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->integer('deliver_id')->nullable()->comment('自提点ID'); - $table->integer('clerk_id')->nullable()->comment('核销员ID'); - $table->string('deliver_name', 255)->nullable()->comment('自提点名称'); - $table->integer('created_at') - ->nullable(); - $table->integer('updated_at') - ->nullable(); - $table->integer('deleted_at') - ->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_deliver comment '订单自提点自提记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_order_deliver'); - } - -} diff --git a/database/migrations/2019_11_20_161833__update_relation_id_yz_member_relation_table.php b/database/migrations/2019_11_20_161833__update_relation_id_yz_member_relation_table.php deleted file mode 100644 index 85ff4b64..00000000 --- a/database/migrations/2019_11_20_161833__update_relation_id_yz_member_relation_table.php +++ /dev/null @@ -1,36 +0,0 @@ -distinct('uniacid') - ->orderBy('id','desc') - ->pluck('id') - ->toArray(); - - \app\backend\modules\member\models\MemberRelation::whereNotIn('id', $relation)->delete(); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } - -} diff --git a/database/migrations/2019_11_28_140147_create_ims_yz_alipay_order_settle_log_table.php b/database/migrations/2019_11_28_140147_create_ims_yz_alipay_order_settle_log_table.php deleted file mode 100644 index 6e7e15a2..00000000 --- a/database/migrations/2019_11_28_140147_create_ims_yz_alipay_order_settle_log_table.php +++ /dev/null @@ -1,53 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->string('app_id')->nullable()->comment('支付宝APPid'); - $table->string('app_auth_token')->nullable()->comment('子商户授权token'); - $table->string('royalty_type')->nullable()->comment('分账类型'); - $table->string('trans_out_type')->nullable()->comment('支出方账户类型'); - $table->string('trans_in_type')->nullable()->comment('收入方账户类型'); - $table->string('trans_out')->nullable()->comment('支出方账户'); - $table->string('trans_in')->nullable()->comment('收入方账户'); - $table->string('trade_no')->nullable()->comment('支付宝订单号'); - $table->string('out_request_no')->nullable()->comment('结算请求流水号'); - $table->string('message')->nullable()->comment('回调信息'); - $table->decimal('amount',10 ,2)->nullable()->comment('分账的金额'); - $table->integer('status')->nullable()->comment('分账状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_alipay_order_settle_log comment '支付宝服务商分账记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_excel_recharge_detail'); - } - -} diff --git a/database/migrations/2019_11_28_140147_create_ims_yz_alipay_pay_order_table.php b/database/migrations/2019_11_28_140147_create_ims_yz_alipay_pay_order_table.php deleted file mode 100644 index d4de88f8..00000000 --- a/database/migrations/2019_11_28_140147_create_ims_yz_alipay_pay_order_table.php +++ /dev/null @@ -1,48 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->integer('member_id')->nullable()->comment('会员ID'); - $table->integer('account_id')->nullable()->comment('门店ID'); - $table->string('pay_sn')->nullable()->comment('支付单号'); - $table->string('order_sn')->nullable()->comment('订单编号'); - $table->string('trade_no')->nullable()->comment('支付宝支付单号'); - $table->decimal('total_amount', 14)->nullable()->comment('支付金额'); - $table->boolean('royalty')->default(0)->nullable()->comment('是否开启分账'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_alipay_pay_order comment '支付宝服务商支付记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_excel_recharge_detail'); - } - -} diff --git a/database/migrations/2019_11_28_140147_create_ims_yz_wechat_pay_order_table.php b/database/migrations/2019_11_28_140147_create_ims_yz_wechat_pay_order_table.php deleted file mode 100644 index 26957760..00000000 --- a/database/migrations/2019_11_28_140147_create_ims_yz_wechat_pay_order_table.php +++ /dev/null @@ -1,48 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('order_id')->comment('订单ID'); - $table->integer('member_id')->comment('会员ID'); - $table->integer('account_id')->comment('门店ID'); - $table->string('pay_sn')->comment('订单支付编号'); - $table->string('order_sn')->comment('订单号'); - $table->string('transaction_id')->comment('微信支付单号'); - $table->decimal('total_fee', 14)->comment('支付金额,单位分'); - $table->boolean('profit_sharing')->default(0)->comment('是否开启分账'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_wechat_pay_order comment '微信服务商支付记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_excel_recharge_detail'); - } - -} diff --git a/database/migrations/2019_11_28_140147_create_ims_yz_wechat_profit_sharing_log_table.php b/database/migrations/2019_11_28_140147_create_ims_yz_wechat_profit_sharing_log_table.php deleted file mode 100644 index faa9eaff..00000000 --- a/database/migrations/2019_11_28_140147_create_ims_yz_wechat_profit_sharing_log_table.php +++ /dev/null @@ -1,53 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->nullable(); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->string('mch_id')->nullable()->comment('商户号'); - $table->string('sub_mch_id')->nullable()->comment('子商户号'); - $table->string('appid')->nullable()->comment('商户appid'); - $table->string('sub_appid')->nullable()->comment('子商户appid'); - $table->integer('type')->nullable()->comment('分账类型'); - $table->integer('account')->nullable()->comment('分账接收方'); - $table->string('transaction_id')->nullable()->comment('微信支付单号'); - $table->string('out_order_no')->nullable()->comment('分账编号'); - $table->string('description')->nullable()->comment('分账描述'); - $table->integer('amount')->nullable()->comment('分账金额,单位分'); - $table->integer('status')->nullable()->comment('分账状态'); - $table->string('message')->nullable()->comment('回调信息'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_wechat_profit_sharing_log comment '微信服务商分账记录'");//表注释 - - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_excel_recharge_detail'); - } - -} diff --git a/database/migrations/2019_11_29_134310_add_jsapi_pay_to_yz_pay_type_table.php.php b/database/migrations/2019_11_29_134310_add_jsapi_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index a1b99217..00000000 --- a/database/migrations/2019_11_29_134310_add_jsapi_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,32 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (48, \'微信支付(服务商)\', \'WechatJsapi\', \'shop.wechat_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2019_12_04_134310_add_member_card_pay_to_yz_pay_type_table.php.php b/database/migrations/2019_12_04_134310_add_member_card_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index 9860f098..00000000 --- a/database/migrations/2019_12_04_134310_add_member_card_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,32 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (53, \'会员卡(余额)\', \'MemberCard\', \'shop.member_card_set\', 2, 0, \'元\', 1575447811, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2019_12_17_103639_create_yz_order_goods_coupon_table.php b/database/migrations/2019_12_17_103639_create_yz_order_goods_coupon_table.php deleted file mode 100644 index 67545f3a..00000000 --- a/database/migrations/2019_12_17_103639_create_yz_order_goods_coupon_table.php +++ /dev/null @@ -1,70 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('order_goods_id'); - $table->integer('coupon_id'); - $table->integer('coupon_several')->default(1); - $table->tinyInteger('send_type')->default(1); - $table->integer('send_num')->default(0)->comment('发放数量。字段名和原流程一致'); - $table->integer('end_send_num')->default(0)->comment('已发放。字段名和原流程一致'); - $table->boolean('status')->default(0); - $table->string('remark')->nullable(); - $table->string('num_reason')->nullable()->comment('应发几张和实发几张不一致时原因'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->unique(['order_goods_id', 'coupon_id'], 'order_goods_id_coupon_id'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_goods_coupon` comment'订单--商品购买订单赠送优惠券'");//表注释 - - - } - if(Schema::hasTable('yz_order_goods_coupon')) - { - $uniAccount = UniAccount::get() ?: []; - foreach ($uniAccount as $u) { - Setting::$uniqueAccountId = \YunShop::app()->uniacid = $u->uniacid; - $orders = \app\common\models\Order::uniacid() - ->whereIn('status',[\app\common\models\Order::WAIT_PAY,\app\common\models\Order::WAIT_SEND,\app\common\models\Order::WAIT_RECEIVE]) - ->get(); - if(!$orders->isEmpty()) - { - foreach ($orders as $order) - { - $orderGoods = $order->hasManyOrderGoods;//订单商品 - $couponService = new \app\frontend\modules\coupon\services\CouponService($order, null, $orderGoods); - $couponService->sendCouponLog(); - } - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2019_12_19_134310_add_aljsapi_pay_to_yz_pay_type_table.php.php b/database/migrations/2019_12_19_134310_add_aljsapi_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index eb88e3aa..00000000 --- a/database/migrations/2019_12_19_134310_add_aljsapi_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,32 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (49, \'支付宝支付(服务商)\', \'AlipayJsapi\', \'shop.alipay_set\', 2, 0, \'元\', 1559528246, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2019_12_31_162947_add_remind_to_admin_users.php b/database/migrations/2019_12_31_162947_add_remind_to_admin_users.php deleted file mode 100644 index d0e96a86..00000000 --- a/database/migrations/2019_12_31_162947_add_remind_to_admin_users.php +++ /dev/null @@ -1,47 +0,0 @@ -integer('change_password_at')->nullable(); - } - if (!Schema::hasColumn('yz_admin_users', 'change_remind')) { - $table->tinyInteger('change_remind')->default(0); - } - if (!Schema::hasColumn('yz_admin_users', 'login_token')) { - $table->string('login_token')->nullable(); - } - }); - } - - if (Schema::hasTable('yz_admin_users')) { - if (Schema::hasColumn('yz_admin_users', 'change_password_at') && Schema::hasColumn('yz_admin_users', 'change_remind')) { - \app\platform\modules\user\models\AdminUser::where('deleted_at', null) - ->update(['change_password_at' => time(), 'change_remind' => 1]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_01_07_141330_add_yz_dispatch_plugin_id.php b/database/migrations/2020_01_07_141330_add_yz_dispatch_plugin_id.php deleted file mode 100644 index 0891534a..00000000 --- a/database/migrations/2020_01_07_141330_add_yz_dispatch_plugin_id.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('plugin_id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_11_111102_update_addresaddress_add_area.php b/database/migrations/2020_03_11_111102_update_addresaddress_add_area.php deleted file mode 100644 index d1452e8a..00000000 --- a/database/migrations/2020_03_11_111102_update_addresaddress_add_area.php +++ /dev/null @@ -1,38 +0,0 @@ - '长春市', 'parentid' => 220000, 'level' => 2])->first(); - - if ($city) { - $aaa = \app\common\models\Address::where(['areaname' => '经开区', 'parentid'=> $city->id, 'level' => 3])->first(); - if(is_null($aaa)) { - \app\common\models\Address::insert(['areaname' => '经开区', 'parentid'=> $city->id, 'level' => 3]); - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_20_152511_add_hk_scan_pay_to_yz_pay_type_table.php b/database/migrations/2020_03_20_152511_add_hk_scan_pay_to_yz_pay_type_table.php deleted file mode 100644 index 0b8cad0d..00000000 --- a/database/migrations/2020_03_20_152511_add_hk_scan_pay_to_yz_pay_type_table.php +++ /dev/null @@ -1,34 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (56, \'微信香港钱包(扫码支付)\', \'HkScanPay\', \'shop.hk_scan_pay\', 2, 0, \'元\', 1584689274, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_25_135029_add_longitude_latitude_to_member_address.php b/database/migrations/2020_03_25_135029_add_longitude_latitude_to_member_address.php deleted file mode 100644 index 2e36929e..00000000 --- a/database/migrations/2020_03_25_135029_add_longitude_latitude_to_member_address.php +++ /dev/null @@ -1,48 +0,0 @@ -string('longitude', 15)->default(''); - } - if (!Schema::hasColumn('yz_member_address', 'latitude')) { - $table->string('latitude', 15)->default(''); - } - }); - } - if (Schema::hasTable('mc_member_address')) { - Schema::table('mc_member_address', function (Blueprint $table) { - if (!Schema::hasColumn('mc_member_address', 'longitude')) { - $table->string('longitude', 15)->default(''); - } - if (!Schema::hasColumn('mc_member_address', 'latitude')) { - $table->string('latitude', 15)->default(''); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_25_141330_add_yz_dispatch_type_columns.php b/database/migrations/2020_03_25_141330_add_yz_dispatch_type_columns.php deleted file mode 100644 index 1e01a8a9..00000000 --- a/database/migrations/2020_03_25_141330_add_yz_dispatch_type_columns.php +++ /dev/null @@ -1,48 +0,0 @@ -string('code')->nullable(); - } - if (!Schema::hasColumn('yz_dispatch_type', 'enable')) { - $table->tinyInteger('enable')->default(1); - } - if (!Schema::hasColumn('yz_dispatch_type', 'sort')) { - $table->tinyInteger('sort')->default(0); - } - if (!Schema::hasColumn('yz_dispatch_type', 'created_at')) { - $table->integer('created_at')->nullable(); - } - - if (!Schema::hasColumn('yz_dispatch_type', 'updated_at')) { - $table->integer('updated_at')->nullable(); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_25_141330_add_yz_goods_dispatch_dispatch_type_ids.php b/database/migrations/2020_03_25_141330_add_yz_goods_dispatch_dispatch_type_ids.php deleted file mode 100644 index 46a27aa5..00000000 --- a/database/migrations/2020_03_25_141330_add_yz_goods_dispatch_dispatch_type_ids.php +++ /dev/null @@ -1,34 +0,0 @@ -string('dispatch_type_ids')->default('1')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_26_111102_update_dispatch_type_data.php b/database/migrations/2020_03_26_111102_update_dispatch_type_data.php deleted file mode 100644 index e2751663..00000000 --- a/database/migrations/2020_03_26_111102_update_dispatch_type_data.php +++ /dev/null @@ -1,72 +0,0 @@ - [ - 'code' => 'dispatch', - 'enable' => 1, - ], 2 => [ - 'code' => 'self_deliver', - 'plugin' => 32, - 'enable' => 1, - - ], 3 => [ - 'code' => 'store_deliver', - 'plugin' => 32, - 'enable' => 1, - - ], 4 => [ - 'code' => 'hotel_deliver', - 'plugin' => 33, - 'enable' => 1, - - ], 5 => [ - 'code' => 'deliver_station_self', - 'plugin' => 1, - 'enable' => 1, - - ], 6 => [ - 'code' => 'deliver_station_send', - 'plugin' => 1, - 'enable' => 1, - - ], - 8 => [ - 'code' => 'package_deliver', - 'enable' => 1, - - ], - ]; - foreach ($dispatchTypes as $dispatchType) { - if($dispatchType['id'] !== 7) { //司机配送暂时不更新 - $dispatchType->fill($data[$dispatchType['id']]); - $dispatchType->save(); - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_03_27_151714_create_yz_job_heartbeat_table.php b/database/migrations/2020_03_27_151714_create_yz_job_heartbeat_table.php deleted file mode 100644 index 075bcc66..00000000 --- a/database/migrations/2020_03_27_151714_create_yz_job_heartbeat_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->integer('execution_time')->nullable()->comment('执行时间'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_job_heartbeat comment '队列执行记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_job_heartbeat'); - } -} diff --git a/database/migrations/2020_03_27_151729_create_yz_cron_heartbeat_table.php b/database/migrations/2020_03_27_151729_create_yz_cron_heartbeat_table.php deleted file mode 100644 index c4a0acab..00000000 --- a/database/migrations/2020_03_27_151729_create_yz_cron_heartbeat_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->integer('execution_time')->nullable()->comment('执行时间'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_cron_heartbeat comment '定时任务执行记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_cron_heartbeat'); - } -} diff --git a/database/migrations/2020_03_31_124038_add_room_to_yz_order_income_count_table.php b/database/migrations/2020_03_31_124038_add_room_to_yz_order_income_count_table.php deleted file mode 100644 index 5ab6962f..00000000 --- a/database/migrations/2020_03_31_124038_add_room_to_yz_order_income_count_table.php +++ /dev/null @@ -1,36 +0,0 @@ -decimal('room',14,2)->nullable()->comment('主播分红'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_04_10_160422_add_is_old_to_yz_member_table.php b/database/migrations/2020_04_10_160422_add_is_old_to_yz_member_table.php deleted file mode 100644 index 3efd3358..00000000 --- a/database/migrations/2020_04_10_160422_add_is_old_to_yz_member_table.php +++ /dev/null @@ -1,38 +0,0 @@ -tinyInteger('is_old')->default(0)->comment('老数据判断'); - } - if (!Schema::hasColumn('yz_member', 'mark_member_id')) { - $table->integer('mark_member_id')->default(0)->comment('标记会员id'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_04_16_184722_create_shop_yz_member_alipay_table.php b/database/migrations/2020_04_16_184722_create_shop_yz_member_alipay_table.php deleted file mode 100644 index 45885674..00000000 --- a/database/migrations/2020_04_16_184722_create_shop_yz_member_alipay_table.php +++ /dev/null @@ -1,48 +0,0 @@ -bigIncrements('alipay_id'); - $table->integer('uniacid'); - $table->integer('member_id'); - $table->string('user_id', 20); //支付宝用户的userId - $table->string('avatar')->nullable(); //用户头像 - $table->string('province', 25)->nullable(); //省份名称 - $table->string('city', 25)->nullable(); //市名称 - $table->string('nick_name', 50)->nullable(); //用户昵称 - $table->string('is_student_certified', 10)->nullable(); //是否是学生 - $table->string('user_type', 10)->nullable(); //用户类型 - $table->string('user_status', 10)->nullable(); //用户状态 - $table->string('is_certified', 10)->nullable(); //是否通过实名认证 - $table->string('gender', 20)->nullable(); //性别 - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_alipay'); - - } -} diff --git a/database/migrations/2020_04_20_140134_change_amount_to_yz_alipay_order_settle_log.php b/database/migrations/2020_04_20_140134_change_amount_to_yz_alipay_order_settle_log.php deleted file mode 100644 index 60bd35ce..00000000 --- a/database/migrations/2020_04_20_140134_change_amount_to_yz_alipay_order_settle_log.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('amount', 11,2)->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_04_28_072741_create_update_auth.php b/database/migrations/2020_04_28_072741_create_update_auth.php deleted file mode 100644 index e7546f40..00000000 --- a/database/migrations/2020_04_28_072741_create_update_auth.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('id', true); - $table->string('code', 50)->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_04_30_091715_create_yz_wq_version_log_table.php b/database/migrations/2020_04_30_091715_create_yz_wq_version_log_table.php deleted file mode 100644 index 9ae393cc..00000000 --- a/database/migrations/2020_04_30_091715_create_yz_wq_version_log_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->string('version')->comment('执行过的版本号'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_wq_version_log comment '微擎--版本记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_wq_version_log'); - } -} diff --git a/database/migrations/2020_05_06_160422_add_ip_to_yz_order_request_table.php b/database/migrations/2020_05_06_160422_add_ip_to_yz_order_request_table.php deleted file mode 100644 index 3f4692d1..00000000 --- a/database/migrations/2020_05_06_160422_add_ip_to_yz_order_request_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('ip')->nullable(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_05_16_150717_update_yz_message_template_data.php b/database/migrations/2020_05_16_150717_update_yz_message_template_data.php deleted file mode 100644 index 6003d35d..00000000 --- a/database/migrations/2020_05_16_150717_update_yz_message_template_data.php +++ /dev/null @@ -1,157 +0,0 @@ -'UpqqZLZlbN6FIWTVOmjcAQTQ0C2Prev92AN5ILK4wKI','short'=>'OPENTM405485000'], - ['id'=>'1lvZE23BfsiPCxtYXn6bdHNbNuwmpKjUVINJQ_fYN5E','short'=>'OPENTM202425107'], - ['id'=>'0HY2OwvCkQL5a9AZA1lhjOFU8VE12WBAJtZiOIHcVzI','short'=>'OPENTM409281647'], - ['id'=>'UpqqZLZlbN6FIWTVOmjcAQTQ0C2Prev92AN5ILK4wKI','short'=>'OPENTM405485000'] - ]; - - $uniAccount = UniAccount::getEnable() ?: []; - - foreach ($uniAccount as $u) { - - \Setting::$uniqueAccountId = $u->uniacid; - - \YunShop::app()->uniacid = $u->uniacid; - - $default = \app\common\models\TemplateMessageDefault::uniacid()->whereIn("template_id_short",$template_short)->pluck('template_id_short'); - - $default = empty($default) ? [] : $default->toArray(); - - //添加默认模板信息 - $this->addDefault($template_short,$template,$default); - - //添加模板信息 - $this->addTemplate($template_short,$template,$temp_all); - } - } - - public function addDefault($template_short,$template,$default) - { - $data = []; - - foreach ($template_short as $kk=>$vv) { - if (!in_array($vv,$default)) { - $data[$kk]['uniacid'] = YunShop::app()->uniacid; - $data[$kk]['template_id'] = $template[$kk]; - $data[$kk]['template_id_short'] = $vv; - $data[$kk]['created_at'] = time(); - $data[$kk]['updated_at'] = time(); - } - } - - if (!empty($data)) { - \app\common\models\TemplateMessageDefault::uniacid()->insert($data); - } - } - - public function addTemplate($short,$template,$temp_all) - { - $ids = ['income_withdraw','income_withdraw_check','income_withdraw_pay','member_withdraw']; - - $data = []; //文件中的模板 - - //判断数据库中模板是否存在,并与文件中的template_id对比,有则返回,无则增加 - $templateData = \app\common\models\notice\MessageTemp::uniacid()->whereIn("notice_type",$ids)->get(); - - $templateData = empty($templateData) ? [] : $templateData->toArray(); - - $newTemp = \app\common\modules\template\Template::current()->getNoticeItems(); - - foreach($newTemp as $key => $item) { - foreach($ids as $kk=>$vv) { - if ($key == $vv) { - $data[$vv] = $item; - } - } - } - - if (empty($templateData)) { - foreach ($data as $key=>$item) { - $data[$key]['uniacid'] = \YunShop::app()->uniacid; - $template_id = empty($this->getTemplateId($item['template_id_short'],$temp_all)) ? "" : $this->getTemplateId($item['template_id_short'],$temp_all); - $data[$key]['template_id'] = $template_id; - $data[$key]['is_default'] = 1; - $data[$key]['data'] = json_encode($item['data']); - $data[$key]['notice_type'] = $key; - $data[$key]['created_at'] = time(); - $data[$key]['updated_at'] = time(); - unset($data[$key]['template_id_short']); - } - } else { - foreach ($templateData as $kk=>$vv){ - - if (!in_array($vv['template_id'],$template)) { - //先删除 - \app\common\models\notice\MessageTemp::uniacid()->where("notice_type",$vv['notice_type'])->delete(); - - foreach ($data as $key=>$item) { - - if ($key == $vv['notice_type']) { - $data[$key]['uniacid'] = \YunShop::app()->uniacid; - $template_id = empty($this->getTemplateId($item['template_id_short'],$temp_all)) ? "" : $this->getTemplateId($item['template_id_short'],$temp_all); - $data[$key]['template_id'] = $template_id; - $data[$key]['is_default'] = 1; - $data[$key]['data'] = json_encode($item['data']); - $data[$key]['notice_type'] = $key; - $data[$key]['created_at'] = time(); - $data[$key]['updated_at'] = time(); - unset($data[$key]['template_id_short']); - } - - } - - } else { - foreach ($data as $key=>$item) { - unset($data[$key]['template_id_short']); - } - } - } - } - - if (!empty($data)) { - \app\common\models\notice\MessageTemp::insert($data); - } - } - - public function getTemplateId($value,$temp_all){ - - foreach ($temp_all as $key=>$item) { - if ($value == $item['short']) { - return $item['id']; - } - } - - return ""; - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_06_04_135615_create_yz_member_merge_log_table.php b/database/migrations/2020_06_04_135615_create_yz_member_merge_log_table.php deleted file mode 100644 index f60423d0..00000000 --- a/database/migrations/2020_06_04_135615_create_yz_member_merge_log_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('保留会员id'); - $table->integer('mark_member_id')->comment('被标记会员id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_merge_log'); - } -} diff --git a/database/migrations/2020_06_10_134515_create_yz_official_website_theme_set.php b/database/migrations/2020_06_10_134515_create_yz_official_website_theme_set.php deleted file mode 100644 index 8db3b070..00000000 --- a/database/migrations/2020_06_10_134515_create_yz_official_website_theme_set.php +++ /dev/null @@ -1,99 +0,0 @@ -increments('id')->comment('主键id'); - $table->integer('uniacid')->default(0)->comment('公众号id'); - $table->string('title')->nullable()->comment('主题名称'); - $table->tinyInteger('is_default')->default(0)->comment('是否默认 1-是 0-否'); - $table->text('basic')->nullable()->comment('基础'); - $table->text('top')->nullable()->comment('头部'); - $table->text('tail')->nullable()->comment('尾部'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - $data = [ - "id" => 1, - "title" => "官网", - "is_default" => 1, - "basic" => '{"cus_url":"","cus_link":"","cus_mobile":"","cus_uniacid":1}', - "top" => '{"logo":"","is_sign":1,"navigation":[{"name":"\u9996\u9875","url":""},{"name":"\u89e3\u51b3\u65b9\u6848","url":""},{"name":"\u4ea7\u54c1\u4e2d\u5fc3","url":""},{"name":"\u8d44\u6e90\u4e2d\u5fc3","url":""},{"name":"\u5173\u4e8e\u6211\u4eec","url":""}]}', - "tail" => '<div class="bottom"> -<div class="bottom-a"> -<div class="bottom-left"> -<div class="bottom-left-one"> -<div class="bottom-left-title"> -<div class="bottom-left-title1">产品服务</div> -<div class="bottom-left-title2"><a href="">产品介绍</a></div> -<div class="bottom-left-title2"><a href="">解决方案</a></div> -<div class="bottom-left-title2"><a href="">立即登录</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">资源中心</div> -<div class="bottom-left-title2"><a href="">电子合同百科</a></div> -<div class="bottom-left-title2"><a href="">用户指南</a></div> -<div class="bottom-left-title2"><a href="">操作视频</a></div> -<div class="bottom-left-title2"><a href="">帮助中心</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">关于我们</div> -<div class="bottom-left-title2"><a href="">公司介绍</a></div> -<div class="bottom-left-title2"><a href="">联系我们</a></div> -</div> -<div class="bottom-left-title" style="flex: 2;"> -<div class="bottom-left-title1">联系我们</div> -<div class="bottom-left-title2">电话:020-2222222-2222222</div> -<div class="bottom-left-title2">邮箱:9572315554455@163.com</div> -<div class="bottom-left-title2">地址:广州市白云区</div> -</div> -</div> -</div> -<div class="bottom-right"> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫添加联系人企业微信</div> -</div> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫了解更多</div> -</div> -</div> -</div> -<div class="bottom-b"> -<div>备案号:11111111111111111111111111111111</div> -<div>备案号:11111111111111111111111111111111</div> -</div> -</div>', - "created_at" => time(), - "updated_at" => time() - ]; - - \Illuminate\Support\Facades\DB::table("yz_official_website_theme_set")->insert($data); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_official_website_theme_set comment '官网商城表单--主题设置表'"); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_official_website_theme_set'); - } -} diff --git a/database/migrations/2020_06_10_134613_create_yz_official_website_multiple_list.php b/database/migrations/2020_06_10_134613_create_yz_official_website_multiple_list.php deleted file mode 100644 index 56657216..00000000 --- a/database/migrations/2020_06_10_134613_create_yz_official_website_multiple_list.php +++ /dev/null @@ -1,807 +0,0 @@ -increments('id')->comment('主键id'); - $table->integer('uniacid')->default(0)->comment('公众号id'); - $table->integer('theme_id')->comment('主题ID'); - $table->string('name')->comment('名称'); - $table->string('identification')->comment('标识'); - - $table->string('mul_title')->comment('标题'); - $table->string('keyword')->comment('关键词'); - $table->string('describe')->nullable()->comment('描述'); - - $table->text('detail')->nullable()->comment('详情'); - $table->string('url')->comment('链接'); - $table->longText('article')->nullable()->comment('文章部分'); - $table->longText('helper')->nullable()->comment('帮助部分'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - $data = [ - [ - "theme_id" => 1, - "name" => "首页", - "identification" => "default_home", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="banner nav-bottom"> -<div class="banner-a"> -<div class="banner-title">可信赖的第三方电子合同平台</div> -<div class="banner-title-en">YOU TRUSTED THIRD PARTY PLATFORM OF ELECTRONIC CONTRACT</div> -<div class="banner-slogan"> -<div class="banner-slogan-a">便捷</div> -<div class="banner-slogan-a">高效</div> -<div class="banner-slogan-a" style="border: 0;">安全</div> -</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">传统纸质合同的aa痛处</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/index_part1_1.png" alt="" /> -<div class="tradition-one-title">合同签署成本高</div> -<div class="tradition-one-content">纸质合同线下签署的方式,带来了高昂的纸张成本,打印成本,异地签名的快递成本等</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_2.png" alt="" /> -<div class="tradition-one-title">合同签署效率低</div> -<div class="tradition-one-content">线下签订合同需要走各种审批流程,等待公章,异地签署更是要来回快递,平均耗时3-10天,成本高,周期长,效率低,严重影响业务进度</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_3.png" alt="" /> -<div class="tradition-one-title">合同管理难</div> -<div class="tradition-one-content">大量纸质合同的管理,查找困难,并且容易损坏丢失</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_4.png" alt="" /> -<div class="tradition-one-title">合同易篡改</div> -<div class="tradition-one-content">线下签名无法验证签署人身份真实性,容易出现盗用、私刻公章和篡改合同等现象,存在伪假冒代签的风险</div> -</div> -</div> -</div> -<div class="tradition advantage"> -<div class="tradition-title">便捷签署,安全可靠</div> -<div class="tradition-con"> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_1.png" alt="" /> -<div class="tradition-one-title">安全可靠</div> -<div class="tradition-one-content">区块链存储 防止篡改、信 息泄漏</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_2.png" alt="" /> -<div class="tradition-one-title">合法合规</div> -<div class="tradition-one-content">真正具有法律效力的电子 签名、印章</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_3.png" alt="" /> -<div class="tradition-one-title">快捷高效</div> -<div class="tradition-one-content">随时随地一键签署</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_4.png" alt="" /> -<div class="tradition-one-title">应用广泛</div> -<div class="tradition-one-content">满足多维度和个性化需求</div> -</div> -</div> -</div> -<div class="serve"> -<div class="tradition-title">一站式电子合同服务</div> -<div class="serve-con"> -<div class="serve-one"> -<div><img src="official/images/index_part3_1.png" alt="" /></div> -<div class="serve-title">电子签名</div> -<div class="serve-content"> -<div>可靠合规</div> -<div>具有法律效应</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_2.png" alt="" /></div> -<div class="serve-title">身份认证</div> -<div class="serve-content"> -<div>依托高品质权威数据源</div> -<div>确保签署主体真实有效</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_3.png" alt="" /></div> -<div class="serve-title">智能合同</div> -<div class="serve-content"> -<div>实现在线签署</div> -<div>智能审批</div> -<div>合同管理</div> -<div>等便捷功能</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_4.png" alt="" /></div> -<div class="serve-title">存证服务</div> -<div class="serve-content"> -<div>接入蚂蚁区块链技术</div> -<div>证据链同步各权威机构</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_5.png" alt="" /></div> -<div class="serve-title">法律服务</div> -<div class="serve-content"> -<div>联合各权威司法机构</div> -<div>打造安全服务体系</div> -</div> -</div> -</div> -</div> -<div class="industry"> -<div class="tradition-title">芸签,适用对象和行业</div> -<div class="industry-con"> -<div id="golast" class="industry-icon">&lt;</div> -<div id="industry_one" class="industry-one"> -<div class="industry-one-a industry-one-a-yh">银行金融</div> -<div class="industry-one-a industry-one-a-jy">教育培训</div> -<div class="industry-one-a industry-one-a-wl">物流运输</div> -<div class="industry-one-a industry-one-a-ly">旅游服务</div> -</div> -<div id="gonext" class="industry-icon">&gt;</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "解决方案", - "identification" => "project_page", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="project-banner nav-bottom"> -<div class="banner-a"> -<div class="banner-title">应用场景丰富</div> -<div class="banner-title2">一站式解决企业签署难题,降本增效</div> -</div> -</div> -<div class="project-industry"> -<div class="project-industry-con"> -<div id="golast" class="project-industry-icon">&lt;</div> -<div id="industry_one" class="project-industry-one"> -<div class="project-industry-one-a"> -<div id="industry-li1" class="project-industry-one-a-li"><img class="img-show" src="official/images/project_part1_1_active.png" /> <img class="img-hidden" src="official/images/project_part1_1_normal.png" /> -<div class="project-industry-word blue-color">银行金融</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li2" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_2_active.png" /> <img class="img-show" src="official/images/project_part1_2_normal.png" /> -<div class="project-industry-word">互联网+</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li3" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_3_active.png" /> <img class="img-show" src="official/images/project_part1_3_normal.png" /> -<div class="project-industry-word">人力资源</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li4" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_4_active.png" /> <img class="img-show" src="official/images/project_part1_4_normal.png" /> -<div class="project-industry-word">教育培训</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li5" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_5_active.png" /> <img class="img-show" src="official/images/project_part1_5_normal.png" /> -<div class="project-industry-word">物流运输</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li6" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_6_active.png" /> <img class="img-show" src="official/images/project_part1_6_normal.png" /> -<div class="project-industry-word">房产租赁</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li7" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_7_active.png" /> <img class="img-show" src="official/images/project_part1_7_normal.png" /> -<div class="project-industry-word">旅游行业</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li8" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_8_active.png" /> <img class="img-show" src="official/images/project_part1_8_normal.png" /> -<div class="project-industry-word">零售制造</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li9" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_9_active.png" /> <img class="img-show" src="official/images/project_part1_9_normal.png" /> -<div class="project-industry-word">汽车服务</div> -</div> -</div> -</div> -<div id="gonext" class="project-industry-icon">&gt;</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">行业痛点</div> -<div id="tradition-id1" class="tradition-con tradition-con-show"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">投放/贷款周期长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">异地签约时间长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">业务流程繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">纸质合同成本高</div> -</div> -</div> -<div id="tradition-id2" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">纸质合同安全隐患</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">管理效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">运营成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">快递时间长</div> -</div> -</div> -<div id="tradition-id3" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">纸质合同签署周期长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">异地签署繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">纸质合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">纸质合同管理难</div> -</div> -</div> -<div id="tradition-id4" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">异地签署时间长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">流程繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">线下行业发展瓶颈</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">报名周期长</div> -</div> -</div> -<div id="tradition-id5" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">发货、提货效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">权责难分</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -</div> -<div id="tradition-id6" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">签约成本高</div> -</div> -</div> -<div id="tradition-id7" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">用户体验差、纠纷多</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -</div> -<div id="tradition-id8" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同签署效率低</div> -</div> -</div> -<div id="tradition-id9" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">合同签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">签署成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -</div> -</div> -<div class="scene"> -<div class="tradition-title">应用场景</div> -<div class="scene-one"> -<div class="scene-left"><img src="official/images/product_part1_1.png" alt="" /></div> -<div class="scene-right"> -<div id="scene-right-id1" style="display: block;">信用卡用户:信用卡开卡<br />协议按揭用户:按揭协议 <br /> 零售业务用户:业务办理协议<br />贷款用户:贷款协议</div> -<div id="scene-right-id2" style="display: none;">采购合同<br />物流合同<br />销售供货合同<br />抵押贷款合同<br />入驻协议</div> -<div id="scene-right-id3" style="display: none;">劳动合同<br />网络招聘平台服务协议<br />人事代理平台合同<br />人才派遣服务协议</div> -<div id="scene-right-id4" style="display: none;">培训合同<br />线上购买课程合同<br />外聘协议<br />合作协议</div> -<div id="scene-right-id5" style="display: none;">发货、提货单、签收单<br />承运合作协议<br />司机注册协议<br />运费保理协议</div> -<div id="scene-right-id6" style="display: none;">房屋交易合同<br />租赁合同<br />委托协议<br />物业服务协议</div> -<div id="scene-right-id7" style="display: none;">旅游合同<br />旅游平台合作<br />酒店、景点协议<br />代理协议<br />旅游金融服务</div> -<div id="scene-right-id8" style="display: none;">采购协议<br />销售合同<br />运输协议<br />供应商合作协议</div> -<div id="scene-right-id9" style="display: none;">采购合同<br />销售合同<br />委托服务协议<br />汽车金融协议</div> -</div> -</div> -</div> -<div class="scheme"> -<div class="tradition-title">方案优势</div> -<div id="scheme-a1" class="scheme-a" style="display: flex;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">在线办理签约,用户体验好</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">节约纸墨消耗、人员场所管理成本</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">安全合规,加速投资、放贷效率</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">高性能和高稳定性</div> -</div> -</div> -<div id="scheme-a2" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">采用电子签约平台加密存储,杜绝合同泄密、丢失及损坏</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">分类管理统计合同,查找管理方便</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">线上签署,无需快递,快速完成签约合作</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">合同云存储,不需要专人专场管理</div> -</div> -</div> -<div id="scheme-a3" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">远程入职,大幅缩减员工入职周期及HR入职操作</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">远程签署,派遣,加速劳务合作</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">合规有效,即使生效</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">传统人力资源公司实现业务全程线上化</div> -</div> -</div> -<div id="scheme-a4" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">帮助学院快速购买课程,快速学习</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">缩短报名周期,用户体验良好</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">高效聘用,快速与教师达成雇佣关系</div> -</div> -</div> -<div id="scheme-a5" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">降低物流企业运营成本</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">实时掌握流转过程,确保货物高效、准确流转;</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">实时签收,提升用户体验</div> -</div> -</div> -<div id="scheme-a6" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">高效签约,减少用户购房流程及周期</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">线上租房,快速达成租赁协议</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">用户无需到场,即可完成合同签订,用户体验好</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">加强物业管理灵活性</div> -</div> -</div> -<div id="scheme-a7" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">线上签署,高效便捷</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">法律闭环,确保纠纷发生时,能够提供相应的司法保障</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">自动存放到存证平台,实现云存储</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">加速签署环节及云存储环节,降低成本</div> -</div> -</div> -<div id="scheme-a8" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">分类管理统计,查找管理方便</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">无需到达现场即可完成签订,用户体验良好</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">线上一键签署,快速签约合作</div> -</div> -</div> -<div id="scheme-a9" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">缩短采购周期,确保车辆即使送达</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">在线销售,简化购车流程</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">在线委托,提升用户体验感</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">在线贷款分期,提升用户购车灵活性</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "关于我们", - "identification" => "about_us", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="contact-banner nav-bottom"> -<div class="contact-banner-a"> -<div class="contact-banner-left"> -<div class="contact-banner-left-one">安全有保障,让签约更高效</div> -<div class="contact-banner-left-two">SAFEGUARD FOR SIGNING MORE EFFICIENT</div> -</div> -<div class="contact-banner-right"><img src="official/images/contact_bannerbg_content.png" alt="" /></div> -</div> -</div> -<div class="brief"> -<div class="tradition-title">芸签简介</div> -<div class="brief-con"> -<div class="brief-left"> -<div>芸签科技信息有限公司位于国际商贸中心的广州,是基于SAAS模式的第三方电子合同平台,依托中国电子签名行业第一品牌E签宝,融合芸众科技的领先创新技术,为客户提供电子合同、电子签名、证据保全及法律维权等服务,帮助客户轻松完成线上一键合同签署,实现合同签约电子化、智能化。</div> -<div>服务于电子商务、人力资源、汽车服务、零售、物流、旅游、教育、供应链、房地产、租赁、金融等全行业以及政府机构。</div> -</div> -<div class="brief-right"><img src="official/images/contact_part2.png" alt="" /></div> -</div> -</div> -<div class="culture"> -<div class="tradition-title">公司文化</div> -<div class="culture-con"> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_1.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">宗旨</div> -<div>为用户提供便捷高效,安全可靠的在线合同签署服务</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_2.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">理念</div> -<div>科学诚信、开拓创新、优质高效</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_3.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">价值观</div> -<div>拼搏、严谨、责任、共赢</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_4.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">愿景</div> -<div>致力成为全国优秀领先的电子合同签约平台</div> -</div> -</div> -</div> -</div> -<div class="contactus"> -<div class="tradition-title">联系我们</div> -<div class="contactus-con"> -<div class="contactus-left"><img src="official/images/contact_part3.png" alt="" /></div> -<div class="contactus-right"> -<div>咨询电话:12223333333</div> -<div>邮箱:9572315554455@163.com</div> -<div>公司地址:广州市白云区44511222</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "资源中心", - "identification" => "resource_page", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="sec-nav" style="padding-top: 74px;"> -<div class="sec-nav-con"> -<div id="sec-nav-one1" class="sec-nav-one" style="color: #00a2ff;">电子合同百科</div> -<div id="sec-nav-one2" class="sec-nav-one">用户指南</div> -<div id="sec-nav-one3" class="sec-nav-one">帮助中心</div> -</div> -</div> -<div id="tab1" class="article"> -<div class="menu">资源中心&nbsp;&nbsp;&gt;&nbsp;&nbsp;<span id="category_name1" class="word-blue"></span></div> -<div class="article-con"> -<div class="article-one"> -<div class="rticle-one-title">合同百科</div> -<div id="category_ul" class="rticle-one-li">&nbsp;</div> -</div> -<div class="article-two"> -<div id="category_name2" class="rticle-one-title">&nbsp;</div> -<div id="article-ul" class="article-two-lis">&nbsp;</div> -</div> -</div> -</div> -<div id="tab2" class="sec" style="display: none;"> -<div class="guide"> -<div class="tradition-title">视频教程</div> -<div class="guide-con"> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2ebe9a65285890802888538998/AF9QQ3rpRCkA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">PC端创建电子合同</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2fa0d125285890802888541246/3JFNNdaAKCoA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">PC端发起合同签署</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2c337915285890802888510276/O1p4FpAfeTgA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">(PC端)客户签署合同</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/f16104fb5285890802770187889/aAo8jbwIvQoA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">(手机端-微信)客户签署合同</div> -</div> -</div> -</div> -<div class="attestation"> -<div class="tradition-title">实名认证</div> -<div class="attestation-con"> -<div class="attestation-one"> -<div class="attestation-one-left"><img src="official/images/resource_part2_1.png" alt="" /></div> -<div>个人实名认证</div> -</div> -<div class="attestation-one"> -<div class="attestation-one-left"><img src="official/images/resource_part2_2.png" alt="" /></div> -<div>企业实名认证</div> -</div> -</div> -</div> -<div class="contract"> -<div class="tradition-title">签署合同</div> -<div class="contract-con"> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">创建合同模板</div> -</div> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">发起合同签署</div> -</div> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">客户端签署</div> -</div> -</div> -</div> -</div> -<div id="tab3" class="third" style="display: none;"> -<div class="search"> -<div class="search-con"><input id="search-input" class="search-input" type="text" placeholder="请输入搜索内容" /> -<div id="search-btn" class="search-btn">搜索</div> -</div> -</div> -<div class="problem"> -<div class="tradition-title">常见问题</div> -<div id="problem-con" class="problem-con">&nbsp;</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "资源详情", - "identification" => "resource_detail", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "产品", - "identification" => "product_num", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="product-banner nav-bottom"> -<div class="product-banner-a"> -<div class="product-banner-left"> -<div class="product-banner-left-one">芸签为用户提供一套完整的</div> -<div class="product-banner-left-two">全生态电子签名服务</div> -<div class="product-banner-left-three">帮助企业随时随地处理有关合同的一切事务,助力企业解决签署难题,降低成本</div> -</div> -<div class="product-banner-right"><img src="official/images/product_bannerbg_content.png" alt="" /></div> -</div> -</div> -<div class="tabs"> -<div class="tabs-a"> -<div id="tabs-one1" class="tabs-one"> -<div class="tabs-one-word">电子签名</div> -</div> -<div id="tabs-one2" class="tabs-one"> -<div>身份认证</div> -</div> -<div id="tabs-one3" class="tabs-one"> -<div>智能合同</div> -</div> -<div id="tabs-one4" class="tabs-one"> -<div>存证服务</div> -</div> -<div id="tabs-one5" class="tabs-one"> -<div>法律服务</div> -</div> -</div> -<div id="tabs-b1" class="tabs-b tabs-b-show"> -<div class="tabs-b-left"><img src="official/images/product_part1_1.png" alt="" /></div> -<div class="tabs-b-right">芸签从身份认证数据源、证书核验、可信时间戳、私钥保存位置等多个关键点入手提供技术保障,同时从实名认证、意愿认证、签名、存证等环节提供可靠签署流程,证据实时上链,免除平台客户自证清白的成本,也为用户提供放心的签署服务。</div> -</div> -<div id="tabs-b2" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_2.png" alt="" /></div> -<div class="tabs-b-right">芸签身份认证服务依托高品质权威数据源,为客户提供可信、可靠、灵活的身份认证。</div> -</div> -<div id="tabs-b3" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_3.png" alt="" /></div> -<div class="tabs-b-right">芸签为客户提供智能合同管理服务,在线发起合同,智能审批,线上云存储,能精准快捷查找所需合同。</div> -</div> -<div id="tabs-b4" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_4.png" alt="" /></div> -<div class="tabs-b-right">芸签采用蚂蚁区块链存证,多重数据防篡改,帮助客户固化了一系列与签署、合同管理场景相关的电子证据链,这些证据链同步存证至各权威机构共同见证,大大增强了证据链的公信力。</div> -</div> -<div id="tabs-b5" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_5.png" alt="" /></div> -<div class="tabs-b-right">芸签提供追溯签署过程的各类证据报告,联合各权威司法机构,打造安全服务体系,满足用户合规性要求及应对司法纠纷。</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">产品优势</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/product_part2_1.png" alt="" /> -<div class="tradition-one-title">安全可靠</div> -<div class="tradition-one-content">区块链存储,签约主体、签约时间不可篡改。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_2.png" alt="" /> -<div class="tradition-one-title">合法合规</div> -<div class="tradition-one-content">具有法律效力的电子签名、印章,联合数字认证中心,确保签名主体的真实性和有效性。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_3.png" alt="" /> -<div class="tradition-one-title">司法保障</div> -<div class="tradition-one-content">联合公证处、司法坚定权威部门,打造安全可靠的司法保障体系。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_4.png" alt="" /> -<div class="tradition-one-title">技术专业</div> -<div class="tradition-one-content">采用E签宝底层技术,专业的技术团队,打造安全可靠的电子合同签约平台。</div> -</div> -</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/product_part2_4.png" alt="" /> -<div class="tradition-one-title">应用灵活</div> -<div class="tradition-one-content">支持PC、H5、微信小程序等多终端签署,满足客户多样化需求。</div> -</div> -<div style="flex: 0 0 400px;"><img style="width: 275px; height: 275px;" src="official/images/product_part2_6.png" alt="" /></div> -<div class="tradition-one"><img src="official/images/product_part2_5.png" alt="" /> -<div class="tradition-one-title">优质服务</div> -<div class="tradition-one-content">优秀的售后服务团队,在线咨询、培训服务、技术支持等,多维度解决客户难题。</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ] - ]; - - \Illuminate\Support\Facades\DB::table('yz_official_website_multiple')->insert($data); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_official_website_multiple comment '官网商城表单--多表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_official_website_multiple'); - } -} diff --git a/database/migrations/2020_06_18_092757_add_column_to_yz_slide.php b/database/migrations/2020_06_18_092757_add_column_to_yz_slide.php deleted file mode 100644 index 7a123ebe..00000000 --- a/database/migrations/2020_06_18_092757_add_column_to_yz_slide.php +++ /dev/null @@ -1,34 +0,0 @@ -string('small_link')->nullable()->comment('小程序链接'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_06_21_121256_add_small_type_to_mini_template.php b/database/migrations/2020_06_21_121256_add_small_type_to_mini_template.php deleted file mode 100644 index f31208e9..00000000 --- a/database/migrations/2020_06_21_121256_add_small_type_to_mini_template.php +++ /dev/null @@ -1,66 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('small_type')->nullable()->comment("类型id"); - $table->string("template_id")->nullable()->comment("微信模板id"); - $table->string('template_name')->nullable()->comment("微信模板名称"); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_mini_template_corresponding comment '微信小程序模板类型与模板中间表'");//表注释 - $time = time(); - - $uniAccount = \app\common\models\UniAccount::getEnable() ?: []; - $all = []; - - foreach ($uniAccount as $u) { - $uniacid = $u->uniacid; - $data = [ - ["uniacid"=>$uniacid,"small_type"=>1,"template_name"=>"订单支付成功通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>1,"template_name"=>"订单发货通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>1,"template_name"=>"确认收货通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>2,"template_name"=>"退款成功通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>3,"template_name"=>"提现状态通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>3,"template_name"=>"提现到账通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>4,"template_name"=>"新订单提醒","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>4,"template_name"=>"提现状态通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>4,"template_name"=>"提现到账通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>5,"template_name"=>"新订单提醒","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>6,"template_name"=>"直播审核结果通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>6,"template_name"=>"粉丝下单通知","created_at"=>$time,"updated_at"=>$time], - ["uniacid"=>$uniacid,"small_type"=>6,"template_name"=>"佣金到账提醒","created_at"=>$time,"updated_at"=>$time] - ]; - $all = array_merge_recursive($all,$data); - } - - \Illuminate\Support\Facades\DB::table('yz_mini_template_corresponding')->insert($all); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_mini_template_corresponding'); - } -} diff --git a/database/migrations/2020_06_21_123208_add_data_to_mini_template.php b/database/migrations/2020_06_21_123208_add_data_to_mini_template.php deleted file mode 100644 index ea3acb62..00000000 --- a/database/migrations/2020_06_21_123208_add_data_to_mini_template.php +++ /dev/null @@ -1,35 +0,0 @@ -tinyInteger('small_type')->default(0)->comment('新模板标识'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_06_24_160813_add_hk_scan_alipay_to_yz_pay_type_table.php b/database/migrations/2020_06_24_160813_add_hk_scan_alipay_to_yz_pay_type_table.php deleted file mode 100644 index 58b13885..00000000 --- a/database/migrations/2020_06_24_160813_add_hk_scan_alipay_to_yz_pay_type_table.php +++ /dev/null @@ -1,33 +0,0 @@ -getTablePrefix().'yz_pay_type` (`id`, `name`, `code`, `setting_key`, `type`, `plugin_id`, `unit`, `updated_at`, `created_at`, `deleted_at`, `need_password`) - VALUES - (62, \'支付宝香港钱包(扫码支付)\', \'HkScanAlipay\', \'shop.hk_scan_alipay\', 2, 0, \'元\', 1592986288, NULL, NULL, 0) - '); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_06_30_110002_add_column_to_yz_category.php b/database/migrations/2020_06_30_110002_add_column_to_yz_category.php deleted file mode 100644 index b93c5da9..00000000 --- a/database/migrations/2020_06_30_110002_add_column_to_yz_category.php +++ /dev/null @@ -1,34 +0,0 @@ -string('small_adv_url')->nullable()->comment('小程序链接'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_06_30_171321_create_ims_yz_sys_msg_type_table.php b/database/migrations/2020_06_30_171321_create_ims_yz_sys_msg_type_table.php deleted file mode 100644 index 17a06007..00000000 --- a/database/migrations/2020_06_30_171321_create_ims_yz_sys_msg_type_table.php +++ /dev/null @@ -1,78 +0,0 @@ -increments('id'); -// $table->integer('uniacid');类型通用 - $table->string('type_name')->comment('类型名称'); - $table->string('icon_src')->nullable()->comment('类型图标地址'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix() - ."yz_sys_msg_type` comment '商城--系统消息类型表'"); - \Illuminate\Support\Facades\DB::table('yz_sys_msg_type')->insert(array ( - 0 => - array ( - 'id' => 1, - 'type_name' => '系统通知', - 'icon_src' => 'icon-ht_content_systemmessage', - ), - 1 => - array ( - 'id' => 2, - 'type_name' => '订单通知', - 'icon_src' => 'icon-ht_content_order', - ), - 2 => - array ( - 'id' => 3, - 'type_name' => '提现通知', - 'icon_src' => 'icon-ht_content_tixian', - ), - 3 => - array ( - 'id' => 4, - 'type_name' => '申请通知', - 'icon_src' => 'icon-ht_content_apply', - ), - 4 => - array ( - 'id' => 5, - 'type_name' => '商品库存', - 'icon_src' => 'icon-ht_content_goods', - ), - 5 => - array ( - 'id' => 6, - 'type_name' => '优惠券', - 'icon_src' => 'icon-ht_content_coupons', - ), - )); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_sys_msg_type', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2020_06_30_172119_create_ims_yz_sys_msg_log_table.php b/database/migrations/2020_06_30_172119_create_ims_yz_sys_msg_log_table.php deleted file mode 100644 index 535aabf5..00000000 --- a/database/migrations/2020_06_30_172119_create_ims_yz_sys_msg_log_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('type_id')->comment('消息类型id'); - $table->string('title')->comment('消息标题'); - $table->text('content')->comment('消息内容'); - $table->string('redirect_url')->comment('消息点击跳转url'); - $table->tinyInteger('is_read')->default(0)->comment('读取状态,0未读,1已读'); - $table->text('msg_data')->comment('消息详情数据'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->nullable(); - $table->integer('read_at')->nullable()->comment('阅读时间'); - //定义索引 -// $table->index('uniacid'); - $table->index(['uniacid','type_id','created_at']); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_sys_msg_log', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2020_07_02_101453_create_yz_change_mobile_log_table.php b/database/migrations/2020_07_02_101453_create_yz_change_mobile_log_table.php deleted file mode 100644 index ecac33c7..00000000 --- a/database/migrations/2020_07_02_101453_create_yz_change_mobile_log_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('会员id'); - $table->string('mobile_before', 18)->default(0)->comment('修改前手机号'); - $table->string('mobile_after', 18)->default(0)->comment('修改后手机号'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_change_mobile_log` comment '会员手机号修改记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_change_mobile_log'); - } -} diff --git a/database/migrations/2020_07_02_111135_create_yz_member_change_log_table.php b/database/migrations/2020_07_02_111135_create_yz_member_change_log_table.php deleted file mode 100644 index c3896d86..00000000 --- a/database/migrations/2020_07_02_111135_create_yz_member_change_log_table.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('会员id'); - $table->integer('member_id_after')->comment('变更后会员id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_merge_log'); - } -} diff --git a/database/migrations/2020_07_03_102525_upadte_official_field_size.php b/database/migrations/2020_07_03_102525_upadte_official_field_size.php deleted file mode 100644 index b5298c6c..00000000 --- a/database/migrations/2020_07_03_102525_upadte_official_field_size.php +++ /dev/null @@ -1,859 +0,0 @@ -increments('id')->comment('主键id'); - $table->integer('uniacid')->default(0)->comment('公众号id'); - $table->integer('theme_id')->comment('主题ID'); - $table->string('name')->comment('名称'); - $table->string('identification')->comment('标识'); - - $table->string('mul_title')->comment('标题'); - $table->string('keyword')->comment('关键词'); - $table->string('describe')->nullable()->comment('描述'); - - $table->text('detail')->nullable()->comment('详情'); - $table->string('url')->comment('链接'); - $table->longText('article')->nullable()->comment('文章部分'); - $table->longText('helper')->nullable()->comment('帮助部分'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - $data = [ - [ - "theme_id" => 1, - "name" => "首页", - "identification" => "default_home", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="banner nav-bottom"> -<div class="banner-a"> -<div class="banner-title">可信赖的第三方电子合同平台</div> -<div class="banner-title-en">YOU TRUSTED THIRD PARTY PLATFORM OF ELECTRONIC CONTRACT</div> -<div class="banner-slogan"> -<div class="banner-slogan-a">便捷</div> -<div class="banner-slogan-a">高效</div> -<div class="banner-slogan-a" style="border: 0;">安全</div> -</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">传统纸质合同的aa痛处</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/index_part1_1.png" alt="" /> -<div class="tradition-one-title">合同签署成本高</div> -<div class="tradition-one-content">纸质合同线下签署的方式,带来了高昂的纸张成本,打印成本,异地签名的快递成本等</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_2.png" alt="" /> -<div class="tradition-one-title">合同签署效率低</div> -<div class="tradition-one-content">线下签订合同需要走各种审批流程,等待公章,异地签署更是要来回快递,平均耗时3-10天,成本高,周期长,效率低,严重影响业务进度</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_3.png" alt="" /> -<div class="tradition-one-title">合同管理难</div> -<div class="tradition-one-content">大量纸质合同的管理,查找困难,并且容易损坏丢失</div> -</div> -<div class="tradition-one"><img src="official/images/index_part1_4.png" alt="" /> -<div class="tradition-one-title">合同易篡改</div> -<div class="tradition-one-content">线下签名无法验证签署人身份真实性,容易出现盗用、私刻公章和篡改合同等现象,存在伪假冒代签的风险</div> -</div> -</div> -</div> -<div class="tradition advantage"> -<div class="tradition-title">便捷签署,安全可靠</div> -<div class="tradition-con"> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_1.png" alt="" /> -<div class="tradition-one-title">安全可靠</div> -<div class="tradition-one-content">区块链存储 防止篡改、信 息泄漏</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_2.png" alt="" /> -<div class="tradition-one-title">合法合规</div> -<div class="tradition-one-content">真正具有法律效力的电子 签名、印章</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_3.png" alt="" /> -<div class="tradition-one-title">快捷高效</div> -<div class="tradition-one-content">随时随地一键签署</div> -</div> -<div class="tradition-one tradition-two"><img src="official/images/index_part2_4.png" alt="" /> -<div class="tradition-one-title">应用广泛</div> -<div class="tradition-one-content">满足多维度和个性化需求</div> -</div> -</div> -</div> -<div class="serve"> -<div class="tradition-title">一站式电子合同服务</div> -<div class="serve-con"> -<div class="serve-one"> -<div><img src="official/images/index_part3_1.png" alt="" /></div> -<div class="serve-title">电子签名</div> -<div class="serve-content"> -<div>可靠合规</div> -<div>具有法律效应</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_2.png" alt="" /></div> -<div class="serve-title">身份认证</div> -<div class="serve-content"> -<div>依托高品质权威数据源</div> -<div>确保签署主体真实有效</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_3.png" alt="" /></div> -<div class="serve-title">智能合同</div> -<div class="serve-content"> -<div>实现在线签署</div> -<div>智能审批</div> -<div>合同管理</div> -<div>等便捷功能</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_4.png" alt="" /></div> -<div class="serve-title">存证服务</div> -<div class="serve-content"> -<div>接入蚂蚁区块链技术</div> -<div>证据链同步各权威机构</div> -</div> -</div> -<div class="serve-one"> -<div><img src="official/images/index_part3_5.png" alt="" /></div> -<div class="serve-title">法律服务</div> -<div class="serve-content"> -<div>联合各权威司法机构</div> -<div>打造安全服务体系</div> -</div> -</div> -</div> -</div> -<div class="industry"> -<div class="tradition-title">芸签,适用对象和行业</div> -<div class="industry-con"> -<div id="golast" class="industry-icon">&lt;</div> -<div id="industry_one" class="industry-one"> -<div class="industry-one-a industry-one-a-yh">银行金融</div> -<div class="industry-one-a industry-one-a-jy">教育培训</div> -<div class="industry-one-a industry-one-a-wl">物流运输</div> -<div class="industry-one-a industry-one-a-ly">旅游服务</div> -</div> -<div id="gonext" class="industry-icon">&gt;</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "解决方案", - "identification" => "project_page", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="project-banner nav-bottom"> -<div class="banner-a"> -<div class="banner-title">应用场景丰富</div> -<div class="banner-title2">一站式解决企业签署难题,降本增效</div> -</div> -</div> -<div class="project-industry"> -<div class="project-industry-con"> -<div id="golast" class="project-industry-icon">&lt;</div> -<div id="industry_one" class="project-industry-one"> -<div class="project-industry-one-a"> -<div id="industry-li1" class="project-industry-one-a-li"><img class="img-show" src="official/images/project_part1_1_active.png" /> <img class="img-hidden" src="official/images/project_part1_1_normal.png" /> -<div class="project-industry-word blue-color">银行金融</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li2" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_2_active.png" /> <img class="img-show" src="official/images/project_part1_2_normal.png" /> -<div class="project-industry-word">互联网+</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li3" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_3_active.png" /> <img class="img-show" src="official/images/project_part1_3_normal.png" /> -<div class="project-industry-word">人力资源</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li4" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_4_active.png" /> <img class="img-show" src="official/images/project_part1_4_normal.png" /> -<div class="project-industry-word">教育培训</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li5" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_5_active.png" /> <img class="img-show" src="official/images/project_part1_5_normal.png" /> -<div class="project-industry-word">物流运输</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li6" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_6_active.png" /> <img class="img-show" src="official/images/project_part1_6_normal.png" /> -<div class="project-industry-word">房产租赁</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li7" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_7_active.png" /> <img class="img-show" src="official/images/project_part1_7_normal.png" /> -<div class="project-industry-word">旅游行业</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li8" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_8_active.png" /> <img class="img-show" src="official/images/project_part1_8_normal.png" /> -<div class="project-industry-word">零售制造</div> -</div> -</div> -<div class="project-industry-one-a"> -<div id="industry-li9" class="project-industry-one-a-li"><img class="img-hidden" src="official/images/project_part1_9_active.png" /> <img class="img-show" src="official/images/project_part1_9_normal.png" /> -<div class="project-industry-word">汽车服务</div> -</div> -</div> -</div> -<div id="gonext" class="project-industry-icon">&gt;</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">行业痛点</div> -<div id="tradition-id1" class="tradition-con tradition-con-show"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">投放/贷款周期长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">异地签约时间长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">业务流程繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">纸质合同成本高</div> -</div> -</div> -<div id="tradition-id2" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">纸质合同安全隐患</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">管理效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">运营成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">快递时间长</div> -</div> -</div> -<div id="tradition-id3" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">纸质合同签署周期长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">异地签署繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">纸质合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">纸质合同管理难</div> -</div> -</div> -<div id="tradition-id4" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">异地签署时间长</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">流程繁琐</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">线下行业发展瓶颈</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">报名周期长</div> -</div> -</div> -<div id="tradition-id5" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">发货、提货效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">权责难分</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -</div> -<div id="tradition-id6" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">签约成本高</div> -</div> -</div> -<div id="tradition-id7" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">用户体验差、纠纷多</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-4.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -</div> -<div id="tradition-id8" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">合同成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同签署效率低</div> -</div> -</div> -<div id="tradition-id9" class="tradition-con tradition-con-hidden"> -<div class="tradition-one"><img src="official/images/project_part2-1.png" alt="" /> -<div class="tradition-one-content">合同签署效率低</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-2.png" alt="" /> -<div class="tradition-one-content">签署成本高</div> -</div> -<div class="tradition-one"><img src="official/images/project_part2-3.png" alt="" /> -<div class="tradition-one-content">合同管理难</div> -</div> -</div> -</div> -<div class="scene"> -<div class="tradition-title">应用场景</div> -<div class="scene-one"> -<div class="scene-left"><img src="official/images/product_part1_1.png" alt="" /></div> -<div class="scene-right"> -<div id="scene-right-id1" style="display: block;">信用卡用户:信用卡开卡<br />协议按揭用户:按揭协议 <br /> 零售业务用户:业务办理协议<br />贷款用户:贷款协议</div> -<div id="scene-right-id2" style="display: none;">采购合同<br />物流合同<br />销售供货合同<br />抵押贷款合同<br />入驻协议</div> -<div id="scene-right-id3" style="display: none;">劳动合同<br />网络招聘平台服务协议<br />人事代理平台合同<br />人才派遣服务协议</div> -<div id="scene-right-id4" style="display: none;">培训合同<br />线上购买课程合同<br />外聘协议<br />合作协议</div> -<div id="scene-right-id5" style="display: none;">发货、提货单、签收单<br />承运合作协议<br />司机注册协议<br />运费保理协议</div> -<div id="scene-right-id6" style="display: none;">房屋交易合同<br />租赁合同<br />委托协议<br />物业服务协议</div> -<div id="scene-right-id7" style="display: none;">旅游合同<br />旅游平台合作<br />酒店、景点协议<br />代理协议<br />旅游金融服务</div> -<div id="scene-right-id8" style="display: none;">采购协议<br />销售合同<br />运输协议<br />供应商合作协议</div> -<div id="scene-right-id9" style="display: none;">采购合同<br />销售合同<br />委托服务协议<br />汽车金融协议</div> -</div> -</div> -</div> -<div class="scheme"> -<div class="tradition-title">方案优势</div> -<div id="scheme-a1" class="scheme-a" style="display: flex;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">在线办理签约,用户体验好</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">节约纸墨消耗、人员场所管理成本</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">安全合规,加速投资、放贷效率</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">高性能和高稳定性</div> -</div> -</div> -<div id="scheme-a2" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">采用电子签约平台加密存储,杜绝合同泄密、丢失及损坏</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">分类管理统计合同,查找管理方便</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">线上签署,无需快递,快速完成签约合作</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">合同云存储,不需要专人专场管理</div> -</div> -</div> -<div id="scheme-a3" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">远程入职,大幅缩减员工入职周期及HR入职操作</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">远程签署,派遣,加速劳务合作</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">合规有效,即使生效</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">传统人力资源公司实现业务全程线上化</div> -</div> -</div> -<div id="scheme-a4" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">帮助学院快速购买课程,快速学习</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">缩短报名周期,用户体验良好</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">高效聘用,快速与教师达成雇佣关系</div> -</div> -</div> -<div id="scheme-a5" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">降低物流企业运营成本</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">实时掌握流转过程,确保货物高效、准确流转;</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">实时签收,提升用户体验</div> -</div> -</div> -<div id="scheme-a6" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">高效签约,减少用户购房流程及周期</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">线上租房,快速达成租赁协议</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">用户无需到场,即可完成合同签订,用户体验好</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">加强物业管理灵活性</div> -</div> -</div> -<div id="scheme-a7" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">线上签署,高效便捷</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">法律闭环,确保纠纷发生时,能够提供相应的司法保障</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">自动存放到存证平台,实现云存储</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">加速签署环节及云存储环节,降低成本</div> -</div> -</div> -<div id="scheme-a8" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">分类管理统计,查找管理方便</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">无需到达现场即可完成签订,用户体验良好</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">线上一键签署,快速签约合作</div> -</div> -</div> -<div id="scheme-a9" class="scheme-a" style="display: none;"> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_1.png" alt="" /></div> -<div class="scheme-one-word">缩短采购周期,确保车辆即使送达</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_2.png" alt="" /></div> -<div class="scheme-one-word">在线销售,简化购车流程</div> -</div> -<div class="scheme-one blue-bg"> -<div class="scheme-one-img"><img src="official/images/project_part4_3.png" alt="" /></div> -<div class="scheme-one-word">在线委托,提升用户体验感</div> -</div> -<div class="scheme-one"> -<div class="scheme-one-img"><img src="official/images/project_part4_4.png" alt="" /></div> -<div class="scheme-one-word">在线贷款分期,提升用户购车灵活性</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "关于我们", - "identification" => "about_us", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="contact-banner nav-bottom"> -<div class="contact-banner-a"> -<div class="contact-banner-left"> -<div class="contact-banner-left-one">安全有保障,让签约更高效</div> -<div class="contact-banner-left-two">SAFEGUARD FOR SIGNING MORE EFFICIENT</div> -</div> -<div class="contact-banner-right"><img src="official/images/contact_bannerbg_content.png" alt="" /></div> -</div> -</div> -<div class="brief"> -<div class="tradition-title">芸签简介</div> -<div class="brief-con"> -<div class="brief-left"> -<div>芸签科技信息有限公司位于国际商贸中心的广州,是基于SAAS模式的第三方电子合同平台,依托中国电子签名行业第一品牌E签宝,融合芸众科技的领先创新技术,为客户提供电子合同、电子签名、证据保全及法律维权等服务,帮助客户轻松完成线上一键合同签署,实现合同签约电子化、智能化。</div> -<div>服务于电子商务、人力资源、汽车服务、零售、物流、旅游、教育、供应链、房地产、租赁、金融等全行业以及政府机构。</div> -</div> -<div class="brief-right"><img src="official/images/contact_part2.png" alt="" /></div> -</div> -</div> -<div class="culture"> -<div class="tradition-title">公司文化</div> -<div class="culture-con"> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_1.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">宗旨</div> -<div>为用户提供便捷高效,安全可靠的在线合同签署服务</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_2.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">理念</div> -<div>科学诚信、开拓创新、优质高效</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_3.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">价值观</div> -<div>拼搏、严谨、责任、共赢</div> -</div> -</div> -<div class="culture-one"> -<div class="culture-one-img"><img src="official/images/contact_part2_4.png" alt="" /></div> -<div class="culture-one-word"> -<div class="culture-one-word-one">愿景</div> -<div>致力成为全国优秀领先的电子合同签约平台</div> -</div> -</div> -</div> -</div> -<div class="contactus"> -<div class="tradition-title">联系我们</div> -<div class="contactus-con"> -<div class="contactus-left"><img src="official/images/contact_part3.png" alt="" /></div> -<div class="contactus-right"> -<div>咨询电话:12223333333</div> -<div>邮箱:9572315554455@163.com</div> -<div>公司地址:广州市白云区44511222</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "资源中心", - "identification" => "resource_page", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="sec-nav" style="padding-top: 74px;"> -<div class="sec-nav-con"> -<div id="sec-nav-one1" class="sec-nav-one" style="color: #00a2ff;">电子合同百科</div> -<div id="sec-nav-one2" class="sec-nav-one">用户指南</div> -<div id="sec-nav-one3" class="sec-nav-one">帮助中心</div> -</div> -</div> -<div id="tab1" class="article"> -<div class="menu">资源中心&nbsp;&nbsp;&gt;&nbsp;&nbsp;<span id="category_name1" class="word-blue"></span></div> -<div class="article-con"> -<div class="article-one"> -<div class="rticle-one-title">合同百科</div> -<div id="category_ul" class="rticle-one-li">&nbsp;</div> -</div> -<div class="article-two"> -<div id="category_name2" class="rticle-one-title">&nbsp;</div> -<div id="article-ul" class="article-two-lis">&nbsp;</div> -</div> -</div> -</div> -<div id="tab2" class="sec" style="display: none;"> -<div class="guide"> -<div class="tradition-title">视频教程</div> -<div class="guide-con"> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2ebe9a65285890802888538998/AF9QQ3rpRCkA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">PC端创建电子合同</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2fa0d125285890802888541246/3JFNNdaAKCoA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">PC端发起合同签署</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/c2c337915285890802888510276/O1p4FpAfeTgA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">(PC端)客户签署合同</div> -</div> -<div class="guide-one"><video src="http://1251768088.vod2.myqcloud.com/9b37a98dvodgzp1251768088/f16104fb5285890802770187889/aAo8jbwIvQoA.mp4" controls="controls" width="270" height="150"></video> -<div class="video-title">(手机端-微信)客户签署合同</div> -</div> -</div> -</div> -<div class="attestation"> -<div class="tradition-title">实名认证</div> -<div class="attestation-con"> -<div class="attestation-one"> -<div class="attestation-one-left"><img src="official/images/resource_part2_1.png" alt="" /></div> -<div>个人实名认证</div> -</div> -<div class="attestation-one"> -<div class="attestation-one-left"><img src="official/images/resource_part2_2.png" alt="" /></div> -<div>企业实名认证</div> -</div> -</div> -</div> -<div class="contract"> -<div class="tradition-title">签署合同</div> -<div class="contract-con"> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">创建合同模板</div> -</div> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">发起合同签署</div> -</div> -<div class="contract-one"> -<div class="contract-one-img"><img src="official/images/resource_part3_1.png" alt="" /></div> -<div class="contract-one-word">客户端签署</div> -</div> -</div> -</div> -</div> -<div id="tab3" class="third" style="display: none;"> -<div class="search"> -<div class="search-con"><input id="search-input" class="search-input" type="text" placeholder="请输入搜索内容" /> -<div id="search-btn" class="search-btn">搜索</div> -</div> -</div> -<div class="problem"> -<div class="tradition-title">常见问题</div> -<div id="problem-con" class="problem-con">&nbsp;</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "资源详情", - "identification" => "resource_detail", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 1, - "name" => "产品", - "identification" => "product_num", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="product-banner nav-bottom"> -<div class="product-banner-a"> -<div class="product-banner-left"> -<div class="product-banner-left-one">芸签为用户提供一套完整的</div> -<div class="product-banner-left-two">全生态电子签名服务</div> -<div class="product-banner-left-three">帮助企业随时随地处理有关合同的一切事务,助力企业解决签署难题,降低成本</div> -</div> -<div class="product-banner-right"><img src="official/images/product_bannerbg_content.png" alt="" /></div> -</div> -</div> -<div class="tabs"> -<div class="tabs-a"> -<div id="tabs-one1" class="tabs-one"> -<div class="tabs-one-word">电子签名</div> -</div> -<div id="tabs-one2" class="tabs-one"> -<div>身份认证</div> -</div> -<div id="tabs-one3" class="tabs-one"> -<div>智能合同</div> -</div> -<div id="tabs-one4" class="tabs-one"> -<div>存证服务</div> -</div> -<div id="tabs-one5" class="tabs-one"> -<div>法律服务</div> -</div> -</div> -<div id="tabs-b1" class="tabs-b tabs-b-show"> -<div class="tabs-b-left"><img src="official/images/product_part1_1.png" alt="" /></div> -<div class="tabs-b-right">芸签从身份认证数据源、证书核验、可信时间戳、私钥保存位置等多个关键点入手提供技术保障,同时从实名认证、意愿认证、签名、存证等环节提供可靠签署流程,证据实时上链,免除平台客户自证清白的成本,也为用户提供放心的签署服务。</div> -</div> -<div id="tabs-b2" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_2.png" alt="" /></div> -<div class="tabs-b-right">芸签身份认证服务依托高品质权威数据源,为客户提供可信、可靠、灵活的身份认证。</div> -</div> -<div id="tabs-b3" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_3.png" alt="" /></div> -<div class="tabs-b-right">芸签为客户提供智能合同管理服务,在线发起合同,智能审批,线上云存储,能精准快捷查找所需合同。</div> -</div> -<div id="tabs-b4" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_4.png" alt="" /></div> -<div class="tabs-b-right">芸签采用蚂蚁区块链存证,多重数据防篡改,帮助客户固化了一系列与签署、合同管理场景相关的电子证据链,这些证据链同步存证至各权威机构共同见证,大大增强了证据链的公信力。</div> -</div> -<div id="tabs-b5" class="tabs-b"> -<div class="tabs-b-left"><img src="official/images/product_part1_5.png" alt="" /></div> -<div class="tabs-b-right">芸签提供追溯签署过程的各类证据报告,联合各权威司法机构,打造安全服务体系,满足用户合规性要求及应对司法纠纷。</div> -</div> -</div> -<div class="tradition"> -<div class="tradition-title">产品优势</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/product_part2_1.png" alt="" /> -<div class="tradition-one-title">安全可靠</div> -<div class="tradition-one-content">区块链存储,签约主体、签约时间不可篡改。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_2.png" alt="" /> -<div class="tradition-one-title">合法合规</div> -<div class="tradition-one-content">具有法律效力的电子签名、印章,联合数字认证中心,确保签名主体的真实性和有效性。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_3.png" alt="" /> -<div class="tradition-one-title">司法保障</div> -<div class="tradition-one-content">联合公证处、司法坚定权威部门,打造安全可靠的司法保障体系。</div> -</div> -<div class="tradition-one"><img src="official/images/product_part2_4.png" alt="" /> -<div class="tradition-one-title">技术专业</div> -<div class="tradition-one-content">采用E签宝底层技术,专业的技术团队,打造安全可靠的电子合同签约平台。</div> -</div> -</div> -<div class="tradition-con"> -<div class="tradition-one"><img src="official/images/product_part2_4.png" alt="" /> -<div class="tradition-one-title">应用灵活</div> -<div class="tradition-one-content">支持PC、H5、微信小程序等多终端签署,满足客户多样化需求。</div> -</div> -<div style="flex: 0 0 400px;"><img style="width: 275px; height: 275px;" src="official/images/product_part2_6.png" alt="" /></div> -<div class="tradition-one"><img src="official/images/product_part2_5.png" alt="" /> -<div class="tradition-one-title">优质服务</div> -<div class="tradition-one-content">优秀的售后服务团队,在线咨询、培训服务、技术支持等,多维度解决客户难题。</div> -</div> -</div> -</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ] - ]; - - \Illuminate\Support\Facades\DB::table('yz_official_website_multiple')->insert($data); - } - - if (Schema::hasTable('yz_official_website_theme_set')) { - $data = [ - "tail" =>'<div class="bottom"> -<div class="bottom-a"> -<div class="bottom-left"> -<div class="bottom-left-one"> -<div class="bottom-left-title"> -<div class="bottom-left-title1">产品服务</div> -<div class="bottom-left-title2"><a href="">产品介绍</a></div> -<div class="bottom-left-title2"><a href="">解决方案</a></div> -<div class="bottom-left-title2"><a href="">立即登录</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">资源中心</div> -<div class="bottom-left-title2"><a href="">电子合同百科</a></div> -<div class="bottom-left-title2"><a href="">用户指南</a></div> -<div class="bottom-left-title2"><a href="">操作视频</a></div> -<div class="bottom-left-title2"><a href="">帮助中心</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">关于我们</div> -<div class="bottom-left-title2"><a href="">公司介绍</a></div> -<div class="bottom-left-title2"><a href="">联系我们</a></div> -</div> -<div class="bottom-left-title" style="flex: 2;"> -<div class="bottom-left-title1">联系我们</div> -<div class="bottom-left-title2">电话:020-2222222-2222222</div> -<div class="bottom-left-title2">邮箱:9572315554455@163.com</div> -<div class="bottom-left-title2">地址:广州市白云区</div> -</div> -</div> -</div> -<div class="bottom-right"> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫添加联系人企业微信</div> -</div> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫了解更多</div> -</div> -</div> -</div> -<div class="bottom-b"> -<div>备案号:11111111111111111111111111111111</div> -<div>备案号:11111111111111111111111111111111</div> -</div> -</div>' - ]; - - \Illuminate\Support\Facades\DB::table("yz_official_website_theme_set")->where("is_default",1)->update($data); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_07_09_151747_create_ims_yz_bind_mobile_award_point_table.php b/database/migrations/2020_07_09_151747_create_ims_yz_bind_mobile_award_point_table.php deleted file mode 100644 index 41eb1e72..00000000 --- a/database/migrations/2020_07_09_151747_create_ims_yz_bind_mobile_award_point_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true)->comment('主键ID'); - $table->integer('uniacid')->comment('平台ID'); - $table->integer('member_id')->comment('会员ID'); - $table->decimal('point', 14)->comment('奖励积分'); - $table->integer('created_at')->comment('创建时间'); - $table->integer('updated_at')->comment('修改时间'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_bind_mobile_award_point` comment '绑定电话号码积分奖励记录表'"); - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - //Schema::drop('ims_yz_bind_mobile_award_point'); - } - -} diff --git a/database/migrations/2020_07_13_154533_create_yz_order_expediting_delivery.php b/database/migrations/2020_07_13_154533_create_yz_order_expediting_delivery.php deleted file mode 100644 index 37ac919b..00000000 --- a/database/migrations/2020_07_13_154533_create_yz_order_expediting_delivery.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true)->comment('主键ID'); - $table->integer('uniacid')->comment('平台ID'); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->string('order_sn')->nullable()->comment('订单编号'); - $table->integer('created_at')->nullable()->comment('创建时间'); - $table->integer('updated_at')->nullable()->comment('修改时间'); - $table->integer('deleted_at')->nullable()->comment('删除时间'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_order_expediting_delivery comment '催发货表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_expediting_delivery'); - } -} diff --git a/database/migrations/2020_07_14_091737_add_column_to_yz_member_level.php b/database/migrations/2020_07_14_091737_add_column_to_yz_member_level.php deleted file mode 100644 index 33237c2f..00000000 --- a/database/migrations/2020_07_14_091737_add_column_to_yz_member_level.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('balance_recharge', '14')->comment('一次性充值余额值'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_07_14_113210_add_relation_id_to_point_log.php b/database/migrations/2020_07_14_113210_add_relation_id_to_point_log.php deleted file mode 100644 index 4a3861b9..00000000 --- a/database/migrations/2020_07_14_113210_add_relation_id_to_point_log.php +++ /dev/null @@ -1,34 +0,0 @@ - -integer('relation_id')->nullable(); - } - }); - } - } - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_07_15_150717_create_yz_goods_small_code_url.php b/database/migrations/2020_07_15_150717_create_yz_goods_small_code_url.php deleted file mode 100644 index d9f18ccb..00000000 --- a/database/migrations/2020_07_15_150717_create_yz_goods_small_code_url.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('goods_id')->comment('商品ID'); - $table->string('collect_small_url')->comment('小程序二维码'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_goods_small_code_url comment '商品小程序二维码记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_small_code_url'); - } -} diff --git a/database/migrations/2020_07_20_145308_truncate_mini_app_template.php b/database/migrations/2020_07_20_145308_truncate_mini_app_template.php deleted file mode 100644 index 191bf7b0..00000000 --- a/database/migrations/2020_07_20_145308_truncate_mini_app_template.php +++ /dev/null @@ -1,38 +0,0 @@ -truncate(); - } - - if (Schema::hasTable('yz_mini_template_corresponding')) { - \Illuminate\Support\Facades\DB::table('yz_mini_template_corresponding')->where("template_name","退款成功通知")->update(["template_name"=>"订单退款通知"]); - - \Illuminate\Support\Facades\DB::table('yz_mini_template_corresponding')->where("template_name","提现到账通知")->update(["template_name"=>"提现成功通知"]); - - \Illuminate\Support\Facades\DB::table('yz_mini_template_corresponding')->where("template_name","直播审核结果通知")->update(["template_name"=>"审核结果通知"]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_07_27_145939_create_yz_order_address_update_log_table.php b/database/migrations/2020_07_27_145939_create_yz_order_address_update_log_table.php deleted file mode 100644 index 8a602182..00000000 --- a/database/migrations/2020_07_27_145939_create_yz_order_address_update_log_table.php +++ /dev/null @@ -1,50 +0,0 @@ -integer('id', true)->comment('主键ID'); - $table->integer('uniacid')->default(0)->comment('平台ID'); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->integer('user_id')->nullable()->comment('操作员id'); - $table->integer('province_id')->nullable()->default(0)->comment('省ID'); - $table->integer('city_id')->nullable()->default(0)->comment('市ID'); - $table->integer('district_id')->nullable()->default(0)->comment('区ID'); - $table->integer('street_id')->nullable()->default(0)->comment('街道ID'); - $table->string('realname')->nullable()->comment('收件人姓名'); - $table->string('phone')->nullable()->comment('联系方式'); - $table->string('new_address')->nullable()->comment('新地址'); - $table->string('old_address')->nullable()->comment('旧地址'); - $table->string('old_name')->nullable()->comment('旧名称'); - $table->string('old_phone')->nullable()->comment('旧手机号'); - $table->integer('created_at')->nullable()->comment('创建时间'); - $table->integer('updated_at')->nullable()->comment('修改时间'); - $table->integer('deleted_at')->nullable()->comment('删除时间'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_address_update_log` comment '订单--订单地址修改记录'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_address_update_log'); - } -} diff --git a/database/migrations/2020_07_27_164714_add_confirm_pay_to_yz_pay_type_table.php b/database/migrations/2020_07_27_164714_add_confirm_pay_to_yz_pay_type_table.php deleted file mode 100644 index 866bd937..00000000 --- a/database/migrations/2020_07_27_164714_add_confirm_pay_to_yz_pay_type_table.php +++ /dev/null @@ -1,42 +0,0 @@ - 54, - 'name' => '确认', - 'plugin_id' => 0, - 'code' => 'confirmPay', - 'type' => 2, - 'unit' => '元', - 'group_id' => 0, - 'setting_key' => 'pay', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_03_150837_update_id_equal_4_yz_dispatch_type.php b/database/migrations/2020_08_03_150837_update_id_equal_4_yz_dispatch_type.php deleted file mode 100644 index 23ee89a7..00000000 --- a/database/migrations/2020_08_03_150837_update_id_equal_4_yz_dispatch_type.php +++ /dev/null @@ -1,34 +0,0 @@ -code == 'store_deliver' && $dispatchType->plugin == 33) { - $dispatchType->fill(['code'=> 'hotel_deliver']); - $dispatchType->save(); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_12_172252_create_yz_protocol_table.php b/database/migrations/2020_08_12_172252_create_yz_protocol_table.php deleted file mode 100644 index 78594df3..00000000 --- a/database/migrations/2020_08_12_172252_create_yz_protocol_table.php +++ /dev/null @@ -1,51 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->boolean('status')->default(0)->comment('0关闭1开启'); - $table->longText('content')->nullable()->comment('内容'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_protocol comment '会员--会员注册协议表'");//表注释 - } - - $member_protocol = \app\common\models\Setting::where(['key' => 'protocol', 'group' => 'shop'])->select('uniacid', 'value')->get()->toArray(); - foreach ($member_protocol as $k => $value){ - $data[$k]['status'] = unserialize($value['value'])['protocol'] ?: 0; - $data[$k]['content'] = unserialize($value['value'])['content'] ?: ''; - $data[$k]['uniacid'] = $value['uniacid']; - $data[$k]['created_at'] = time(); - $data[$k]['updated_at'] = time(); - } - if(!empty($data)){ - \Illuminate\Support\Facades\DB::table('yz_protocol')->insert($data); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_19_151306_add_volume_to_goods.php b/database/migrations/2020_08_19_151306_add_volume_to_goods.php deleted file mode 100644 index 727e0256..00000000 --- a/database/migrations/2020_08_19_151306_add_volume_to_goods.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('volume',14,3)->nullable()->comment("体积"); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_19_175555_add_volume_to_goods_option.php b/database/migrations/2020_08_19_175555_add_volume_to_goods_option.php deleted file mode 100644 index 716eaf83..00000000 --- a/database/migrations/2020_08_19_175555_add_volume_to_goods_option.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('volume',14,3)->nullable()->comment("体积"); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_21_101645_create_yz_order_service_fee_table.php b/database/migrations/2020_08_21_101645_create_yz_order_service_fee_table.php deleted file mode 100644 index c71ac6c8..00000000 --- a/database/migrations/2020_08_21_101645_create_yz_order_service_fee_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0); - $table->integer('order_id')->index('order_idx'); - $table->string('code', 50)->default('')->comment('服务费码'); - $table->string('name', 100)->default('')->comment('名称'); - $table->decimal('amount', 14,2)->default(0.00)->comment('金额'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_service_fee` comment'订单--服务费记录'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_service_fee'); - } -} diff --git a/database/migrations/2020_08_21_101654_update_service_fee_to_yz_order_table.php b/database/migrations/2020_08_21_101654_update_service_fee_to_yz_order_table.php deleted file mode 100644 index 6d50c6a2..00000000 --- a/database/migrations/2020_08_21_101654_update_service_fee_to_yz_order_table.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('service_fee_amount', 14,2)->default(0.00)->comment('订单服务费金额'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_21_105633_change_uid_to_member_coupon.php b/database/migrations/2020_08_21_105633_change_uid_to_member_coupon.php deleted file mode 100644 index 6933c561..00000000 --- a/database/migrations/2020_08_21_105633_change_uid_to_member_coupon.php +++ /dev/null @@ -1,47 +0,0 @@ -integer('uid')->default(0)->change(); - } - if (!Schema::hasColumn('yz_member_coupon', 'is_expired')) { - $table->integer('is_expired')->default(0)->index('idx_isexpired'); - } - }); - } - try { - if (Schema::hasTable('yz_member_coupon')) { - Schema::table('yz_member_coupon', function (Blueprint $table) { - $table->index('uid'); - }); - } - } catch (\app\common\exceptions\ShopException $e) { - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_24_165645_fix_yz_order_job.php b/database/migrations/2020_08_24_165645_fix_yz_order_job.php deleted file mode 100644 index 337ec104..00000000 --- a/database/migrations/2020_08_24_165645_fix_yz_order_job.php +++ /dev/null @@ -1,45 +0,0 @@ -where('created_at','>',1596211200)->get(); - foreach ($order_pays as $order_pay) { - $this->dispatch(new \app\Jobs\OrderCreatedEventQueueJob($order_pay->order_id)); - } - - $order_pays = \app\common\models\OrderPaidJob::where('status','waiting')->where('created_at','>',1596211200)->get(); - foreach ($order_pays as $order_pay) { - $this->dispatch(new \app\Jobs\OrderPaidEventQueueJob($order_pay->order_id)); - } - - $order_pays = \app\common\models\OrderSentJob::where('status','waiting')->where('created_at','>',1596211200)->get(); - foreach ($order_pays as $order_pay) { - $this->dispatch(new \app\Jobs\OrderSentEventQueueJob($order_pay->order_id)); - } - - $order_pays = \app\common\models\OrderReceivedJob::where('status','waiting')->where('created_at','>',1596211200)->get(); - foreach ($order_pays as $order_pay) { - $this->dispatch(new \app\Jobs\OrderReceivedEventQueueJob($order_pay->order_id)); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2020_08_25_144751_add_wechat_h5_to_yz_pay_type_table.php b/database/migrations/2020_08_25_144751_add_wechat_h5_to_yz_pay_type_table.php deleted file mode 100644 index 5de34f7d..00000000 --- a/database/migrations/2020_08_25_144751_add_wechat_h5_to_yz_pay_type_table.php +++ /dev/null @@ -1,42 +0,0 @@ - 50, - 'name' => '微信H5', - 'plugin_id' => 0, - 'code' => 'wechatH5', - 'type' => 2, - 'unit' => '元', - 'group_id' => 0, - 'setting_key' => 'shop.pay.weixin', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_08_28_111121_create_ims_yz_coupon_use_log_table.php b/database/migrations/2020_08_28_111121_create_ims_yz_coupon_use_log_table.php deleted file mode 100644 index be2f4433..00000000 --- a/database/migrations/2020_08_28_111121_create_ims_yz_coupon_use_log_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('member_id')->comment('会员ID'); - $table->string('detail')->nullable()->comment('详情'); - $table->integer('coupon_id')->index('idx_couponid')->comment('优惠券ID'); - $table->integer('member_coupon_id')->index('idx_membercouponid')->comment('会员优惠券ID'); - $table->integer('type')->comment('类型'); - $table->string('remark')->nullable()->comment('备注'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_coupon_use_log comment '优惠券--使用记录'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_03_135722_add_title_yz_protocol_table.php b/database/migrations/2020_09_03_135722_add_title_yz_protocol_table.php deleted file mode 100644 index 62f4cdb7..00000000 --- a/database/migrations/2020_09_03_135722_add_title_yz_protocol_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('title')->nullable()->comment('标题'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_14_145909_create_ims_yz_income_log_table.php b/database/migrations/2020_09_14_145909_create_ims_yz_income_log_table.php deleted file mode 100644 index dea8d9dd..00000000 --- a/database/migrations/2020_09_14_145909_create_ims_yz_income_log_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('income_id')->comment('收入表id'); - $table->text('before')->nullable()->comment('修改前内容'); - $table->text('after')->nullable()->comment('修改后内容'); - $table->string('remark')->nullable()->comment('备注'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_income_log comment '会员收入修改记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_14_150326_create_ims_yz_withdraw_income_table.php b/database/migrations/2020_09_14_150326_create_ims_yz_withdraw_income_table.php deleted file mode 100644 index 207fdce5..00000000 --- a/database/migrations/2020_09_14_150326_create_ims_yz_withdraw_income_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('member_id')->comment('会员id'); - $table->integer('withdraw_id')->comment('提现id'); - $table->integer('income_id')->comment('收入id'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->unique('income_id'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_withdraw_income comment '财务--收入表与提现中间表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_14_150332_create_ims_yz_withdraw_income_apply_table.php b/database/migrations/2020_09_14_150332_create_ims_yz_withdraw_income_apply_table.php deleted file mode 100644 index 80867a67..00000000 --- a/database/migrations/2020_09_14_150332_create_ims_yz_withdraw_income_apply_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('member_id')->comment('会员id'); - $table->integer('withdraw_id')->comment('提现id'); - $table->integer('income_id')->comment('收入id'); - $table->integer('status')->comment('提现状态'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_withdraw_income_apply comment '财务--会员收入提现状态表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_15_173603_add_near_expiration_to_member_coupon.php b/database/migrations/2020_09_15_173603_add_near_expiration_to_member_coupon.php deleted file mode 100644 index ef18c3ad..00000000 --- a/database/migrations/2020_09_15_173603_add_near_expiration_to_member_coupon.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('near_expiration')->default(0)->comment('即将过期'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_16_093106_create_ims_yz_coupon_slide_show_table.php b/database/migrations/2020_09_16_093106_create_ims_yz_coupon_slide_show_table.php deleted file mode 100644 index c7b3ea41..00000000 --- a/database/migrations/2020_09_16_093106_create_ims_yz_coupon_slide_show_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号'); - $table->integer('sort')->default(0)->comment('排序'); - $table->string('title')->comment('标题'); - $table->string('slide_pic')->comment('幻灯片图片'); - $table->string('slide_link')->nullable()->comment('幻灯片连接'); - $table->string('mini_link')->nullable()->comment('小程序连接'); - $table->tinyInteger('is_show')->default(0)->comment('是否显示'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_coupon_slide_show comment '领券中心优惠券--幻灯片'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_09_22_135224_create_ims_yz_admin_logs_table.php b/database/migrations/2020_09_22_135224_create_ims_yz_admin_logs_table.php deleted file mode 100644 index a568d52d..00000000 --- a/database/migrations/2020_09_22_135224_create_ims_yz_admin_logs_table.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('admin_uid')->comment('类型;1-管理员用户ID')->default(0); - $table->text('remark')->comment('备注'); - $table->string('ip', 15)->comment('ip'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable()->default(0); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_admin_logs'); - } -} diff --git a/database/migrations/2020_09_24_093949_create_yz_order_invoice_table.php b/database/migrations/2020_09_24_093949_create_yz_order_invoice_table.php deleted file mode 100644 index 05175266..00000000 --- a/database/migrations/2020_09_24_093949_create_yz_order_invoice_table.php +++ /dev/null @@ -1,73 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->comment('公众号'); - $table->integer('order_id')->index('order_idx')->comment('订单id'); - $table->integer('need_invoice')->comment('是否开发票 0否1是'); - $table->integer('invoice_type')->nullable()->comment('发票类型(0电子1纸质)'); - $table->integer('rise_type')->nullable()->comment('发票抬头(1个人0单位)'); - $table->string('collect_name')->nullable()->comment('抬头或单位名称'); - $table->string('email')->default('')->nullable()->comment('电子邮箱'); - $table->integer('company_number')->nullable()->comment(' 单位识别码'); - $table->string('invoice')->default('')->nullable()->comment('发票图片链接'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_invoice` comment'订单--发票记录'");//表注释 - - } else { - Schema::table('yz_order_invoice', function (Blueprint $table) { - - if (!Schema::hasColumn('yz_order_invoice', 'email')) { - $table->string('email')->default('')->nullable()->comment('电子邮箱'); - } - - if (!Schema::hasColumn('yz_order_invoice', 'need_invoice')) { - $table->integer('need_invoice')->default(0)->comment('是否开发票 0否1是'); - } - - - if (!Schema::hasColumn('yz_order_invoice', 'created_at')) { - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - } - - - if (Schema::hasColumn('yz_order_invoice', 'call')) { - $table->renameColumn('call', 'collect_name'); - } - - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_invoice'); - } -} diff --git a/database/migrations/2020_10_09_134832_alter_yz_member_income_table.php b/database/migrations/2020_10_09_134832_alter_yz_member_income_table.php deleted file mode 100644 index 605a2bf8..00000000 --- a/database/migrations/2020_10_09_134832_alter_yz_member_income_table.php +++ /dev/null @@ -1,227 +0,0 @@ -integer('dividend_code')->after('member_id')->nullable()->comment('分红插件'); - } - if (!Schema::hasColumn('yz_member_income', 'order_sn')) { - $table->string('order_sn')->nullable()->default('')->comment('订单号'); - } - if (Schema::hasColumn('yz_member_income', 'incometable_type')) { - $table->string('incometable_type')->nullable()->default('')->change(); - } - }); - $classList = [ - IncomeService::COMMISSION_ORDER => 'Yunshop\Commission\models\CommissionOrder', - IncomeService::TEAM_DIVIDEND => 'Yunshop\TeamDividend\models\TeamDividendModel', - IncomeService::AGENT_DIVIDEND => 'Yunshop\AgentDividend\common\models\AgentDividendModel', - IncomeService::APPOINTMENT_ORDER => 'Yunshop\Appointment\common\models\AppointmentIncome', - IncomeService::AREA_DIVIDEND => 'Yunshop\AreaDividend\models\AreaDividend', - IncomeService::MEMBER_BONUS_RECORDS => 'Yunshop\Asset\Common\Models\MemberBonusRecordsModel', - IncomeService::SELL_RECORDS => 'Yunshop\Asset\Common\Models\Digitization\SellRecordsModel', - IncomeService::AUCTION_BID_REWARD => 'Yunshop\Auction\models\AuctionBidReward', - IncomeService::AUCTION_PREPAYMENT => 'auction_prepayment', - IncomeService::CHANNEL_AWARD => 'Yunshop\Channel\model\ChannelAward', - IncomeService::CLOCK_REWARD_LOG => 'Yunshop\ClockIn\models\ClockRewardLogModel', - IncomeService::COMMISSION_ACTIVITY_REWARD => 'Yunshop\CommissionActivity\common\models\CommissionActivityReward', - IncomeService::COMMISSION_MANAGE_LOG => 'Yunshop\CommissionManage\common\models\CommissionManageLogModel', - IncomeService::CONSUME_RETURN => 'Yunshop\ConsumeReturn\common\models\Log', - IncomeService::DELIVERY_STATION_DIVIDEND => 'Yunshop\DeliveryStation\models\DeliveryStationDividend', - IncomeService::DISTRIBUTOR_MANAGE => 'Yunshop\DistributorManage\models\DistributorManage', - IncomeService::DIY_QUEUE_LOG => 'Yunshop\DiyQueue\common\models\DiyQueueLog', - IncomeService::TEAM_PERFORMANCE_STATISTICS_LOG => 'Yunshop\EliteAward\models\TeamPerformanceStatisticsLogModel', - IncomeService::ENERGY_CABIN => 'Yunshop\EnergyCabin\models\Dividend', - IncomeService::FIXED_REWARD_LOG => 'Yunshop\FixedReward\models\FixedRewardLog', - IncomeService::FROZE_WITH_DRAW => 'Yunshop\Froze\Common\Models\FrozeWithdraw', - IncomeService::FULL_RETURN => 'Yunshop\FullReturn\common\models\Log', - IncomeService::FULL_REWARD => 'Yunshop\FullReward\common\models\Log', - IncomeService::GLOBAL_DIVIDEND => 'Yunshop\GlobalDividend\models\GlobalDividendModel', - IncomeService::HOTEL_CASHIER_ORDER => 'Yunshop\Hotel\common\models\CashierOrder', - IncomeService::HOTEL_ORDER => 'Yunshop\Hotel\common\models\HotelOrder', - IncomeService::NOMINATE_BONUS => 'Yunshop\Nominate\models\NominateBonus', - IncomeService::INTEGRAL_WITHDRAW => 'Yunshop\Integral\Common\Models\IntegralWithdrawModel', - IncomeService::INTERESTS_DIVIDEND => 'Yunshop\InterestsDividend\models\InterestsDividendModel', - IncomeService::CONSUMPTION_RECORDS => 'Yunshop\IntervalConsumption\Common\models\ConsumptionRecords', - IncomeService::LEVEL_RETURN => 'Yunshop\LevelReturn\models\LevelReturnModel', - IncomeService::LOVE_WITHDRAW_RECORDS => 'Yunshop\Love\Common\Models\LoveWithdrawRecords', - IncomeService::LOVE_RETURN_LOG => 'Yunshop\Love\Common\Models\LoveReturnLogModel', - IncomeService::LOVE_TEAM_AWARD => 'Yunshop\LoveTeam\model\LoveTeamAward', - IncomeService::MANAGE_AWARD_RECORDS => 'Yunshop\ManageAward\Common\Models\AwardRecordsModel', - IncomeService::MANAGEMENT_DIVIDEND => 'Yunshop\ManagementDividend\models\ManagementDividend', - IncomeService::MANUAL_LOG => 'Yunshop\ManualBonus\models\ManualLog', - IncomeService::MEMBER_RETURN_LOG => 'Yunshop\MemberReturn\common\models\Log', - IncomeService::MERCHANT_BONUS_LOG => 'Yunshop\Merchant\common\models\MerchantBonusLog', - IncomeService::MICRO_SHOP_BONUS_LOG => 'Yunshop\Micro\common\models\MicroShopBonusLog', - IncomeService::MICRO_COMMUNITIES_STICK_REWARD => 'Yunshop\MicroCommunities\models\MicroCommunitiesStickReward', - IncomeService::MEMBER_REFERRAL_AWARD => 'Yunshop\Mryt\common\models\MemberReferralAward', - IncomeService::MEMBER_TEAM_AWARD => 'Yunshop\Mryt\common\models\MemberTeamAward', - IncomeService::ORDER_PARENTING_AWARD => 'Yunshop\Mryt\common\models\OrderParentingAward', - IncomeService::ORDER_TEAM_AWARD => 'Yunshop\Mryt\common\models\OrderTeamAward', - IncomeService::TIER_AWARD => 'Yunshop\Mryt\common\models\TierAward', - IncomeService::NET_CAR_DIVIDEND => 'Yunshop\NetCar\models\NetCarDividend', - IncomeService::TEAM_PRIZE => 'Yunshop\Nominate\models\TeamPrize', - IncomeService::ORDINARY_DIVIDEND => 'Yunshop\OrdinaryDividend\models\RewardModel', - IncomeService::OZY_AWARD_RECORD => 'Yunshop\Ozy\models\AwardRecordModel', - IncomeService::PACKAGE_DELIVER_BONUS => 'Yunshop\PackageDeliver\model\DeliverBonus', - IncomeService::PARTNER_REWARD_LOG => 'Yunshop\PartnerReward\common\models\PartnerRewardLogModel', - IncomeService::PENDING_ORDER_DIVIDEND => 'Yunshop\PendingOrder\models\PendingOrderDividend', - IncomeService::PERFORMANCE_BONUS => 'Yunshop\Performance\common\model\PerformanceBonus', - IncomeService::PERIOD_RETURN_LOG => 'Yunshop\PeriodReturn\model\PeriodLog', - IncomeService::POINT_ACTIVITY_AWARD_LOG => 'Yunshop\PointActivity\Common\Models\PointActivityAwardLog', - IncomeService::RED_PACKET_RECEIVE_LOGS => 'Yunshop\RedPacket\models\ReceiveLogsModel', - IncomeService::RED_PACKET_BONUS => 'Yunshop\RedPacket\models\BonusReceiveLogsModel', - IncomeService::REVENUE_AWARD_BONUS => 'Yunshop\RevenueAward\model\IncomeBonusLogModel', - IncomeService::ROOM_BONUS_LOG => 'Yunshop\Room\models\BonusLog', - IncomeService::SALES_COMMISSION => 'Yunshop\SalesCommission\models\SalesCommission', - IncomeService::SCORING_DIVIDEND => 'Yunshop\ScoringDividend\models\ScoringDividendModel', - IncomeService::SCORING_REWARD => 'Yunshop\ScoringDividend\models\ScoringRewardModel', - IncomeService::SERVICE_STATION_DIVIDEND => 'Yunshop\ServiceStation\models\ServiceStationDividend', - IncomeService::SHARE_CHAIN_AWARD_LOG => 'Yunshop\ShareChain\common\model\ShareChainAwardLog', - IncomeService::SHAREHOLDER_DIVIDEND => 'Yunshop\ShareholderDividend\models\ShareholderDividendModel', - IncomeService::RETURN_SINGLE_LOG => 'Yunshop\SingleReturn\models\ReturnSingleLog', - IncomeService::STORE_CASHIER_ORDER => 'Yunshop\StoreCashier\common\models\CashierOrder', - IncomeService::STORE_CASHIER_STORE_ORDER => 'Yunshop\StoreCashier\common\models\StoreOrder', - IncomeService::STORE_CASHIER_BOSS_ORDER => 'Yunshop\StoreCashier\common\models\BossOrder', - IncomeService::TEAM_MANAGE_BONUS => 'Yunshop\TeamManage\common\model\Bonus', - IncomeService::TEAM_MANAGEMENT_LOG => 'Yunshop\TeamManagement\models\TeamManagementLogModel', - IncomeService::TEAM_RETURN_LOG => 'Yunshop\TeamReturn\models\TeamReturnLog', - IncomeService::TEAM_REWARDS_ORDER => 'Yunshop\TeamRewards\common\models\TeamRewardsOrderModel', - IncomeService::TEAM_MEMBER_TASKS => 'Yunshop\TeamRewards\common\models\TeamMemberTasksModel', - IncomeService::TEAM_SALES_BONUS => 'Yunshop\TeamSales\common\models\TeamSalesModel', - IncomeService::LECTURER_REWARD_LOG => 'Yunshop\VideoDemand\models\LecturerRewardLogModel', - IncomeService::VIDEO_SHARE_BONUS => 'Yunshop\VideoShare\common\model\Bonus', - IncomeService::WEIGHTED_DIVIDEND => 'Yunshop\WeightedDividend\models\RewardModel', - IncomeService::AUCTION_INCOME => 'Yunshop\Auction\models\AuctionOrderModel', - IncomeService::AUCTION_ENDORSEMENT => 'Yunshop\Auction\models\AuctionEndorsement', - IncomeService::TEAM_SZTT => 'Yunshop\TeamSztt\models\TeamSzttModel', - IncomeService::TEAM_SIDEWAYS_WITHDRAW => 'Yunshop\TeamSideways\model\SidewaysWithdrawLog', - IncomeService::COLLAGE_BONUS => 'Yunshop\Collage\models\BonusModel', - IncomeService::COLLAGE_AREA_DIVIDEND => 'Yunshop\Collage\models\AreaDividendModel', - IncomeService::CONSUME_RED_PACKET => 'Yunshop\ConsumeRedPacket\Common\Models\PondReceiveModel', - IncomeService::SNATCH_REWARD => 'Yunshop\SnatchRegiment\models\SnatchReward', - IncomeService::REGIONAL_REWARD => 'Yunshop\RegionalReward\Common\models\RecordModel', - IncomeService::CLOUD_WAREHOUSE => 'Yunshop\CloudWarehouse\models\CloudWarehouseDividend', - IncomeService::STORE_SHAREHOLDER => 'Yunshop\StoreShareholder\model\ShareholderBonusInfo', - IncomeService::ASSEMBLE => 'Yunshop\Assemble\Common\Models\OrderBonusModel', - IncomeService::ASSEMBLE_WAGES => 'Yunshop\Assemble\Common\Models\OrderWagesModel', - IncomeService::PERIOD_RETURN => 'Yunshop\PeriodReturn\model\PeriodLog', - IncomeService::TEAM_FJYX => 'Yunshop\TeamFjyx\models\TeamFjyxModel', - IncomeService::RECOMMENDER => 'Yunshop\Recommender\models\RewardModel', - IncomeService::SUPERIOR_REWARD => 'Yunshop\SuperiorReward\models\OrderBuyModel', - IncomeService::SELL_AWARD => 'Yunshop\SellAward\model\AwardLog', - IncomeService::EQUITY_REWARD => 'Yunshop\EquityReward\models\EquityReward', - IncomeService::STORE_CARD_INCOME => 'Yunshop\StoreCard\Common\Models\CardIncomeModel', - IncomeService::CIRCLE_VIDEO_BOUNS => 'Yunshop\Circle\common\model\CircleVideoBonus', - IncomeService::CIRCLE_INVITATION_REWARD => 'Yunshop\Circle\common\model\CircleReward', - IncomeService::CIRCLE_ADD => 'Yunshop\Circle\common\model\CirclePayLog', - IncomeService::CONSUME_REWARD => 'Yunshop\ConsumeReward\models\RewardLog', - IncomeService::AGENCY_REWARD => 'Yunshop\Agency\models\AgencyModel', - IncomeService::RANKING_AWARD => 'Yunshop\CommissionRanking\models\CommissionOrder', - IncomeService::RESERVE_FUND => 'Yunshop\ReserveFund\models\ReserveFundBonusModel', - IncomeService::ROOM_CODE => 'Yunshop\Room\models\CodeUsed', - IncomeService::SCHOOL_COMPANY => 'Yunshop\SchoolCompany\models\IncomeModel', - IncomeService::LIVE_INSTALL => 'Yunshop\LiveInstall\models\WorkerReward', - IncomeService::INVEST_PEOPLE => 'Yunshop\InvestPeople\models\Dividend', - IncomeService::NEW_RETAIL_REWARD => 'Yunshop\NewRetail\models\RewardModel', - IncomeService::NEW_RETAIL_RIGHT_REWARD => 'Yunshop\NewRetail\models\StockRightReward', - IncomeService::STORE_BUSINESS_ALLIANCE_RECOMMEND => 'Yunshop\StoreBusinessAlliance\models\RecommendAward', - IncomeService::STORE_BUSINESS_ALLIANCE_BUSINESS => 'Yunshop\StoreBusinessAlliance\models\BusinessAward', - IncomeService::STORE_BUSINESS_ALLIANCE_SERVICE => 'Yunshop\StoreBusinessAlliance\models\ServiceAward', - IncomeService::STORE_BUSINESS_ALLIANCE_OPERATION => 'Yunshop\StoreBusinessAlliance\models\OperationAward', - IncomeService::STORE_BUSINESS_ALLIANCE_PRICE => 'Yunshop\StoreBusinessAlliance\models\PriceDifferenceAward', - IncomeService::STORE_BUSINESS_ALLIANCE_STORE => 'Yunshop\StoreBusinessAlliance\models\StoreAward', - IncomeService::STORE_BUSINESS_ALLIANCE_SUPPORT => 'Yunshop\StoreBusinessAlliance\models\SupportAward', - IncomeService::STORE_BUSINESS_ALLIANCE_TASK => 'Yunshop\StoreBusinessAlliance\models\TaskAward', - IncomeService::STORE_BUSINESS_ALLIANCE_TEAM => 'Yunshop\StoreBusinessAlliance\models\TeamAward', - IncomeService::PLUGIN_PARENT_PAYMENT_COMMISSION => 'Yunshop\ParentPayment\common\models\BehalfOrderModel', - IncomeService::STORE_REWARDS => 'Yunshop\StoreRewards\common\models\StoreRewardsRecord', - IncomeService::STORE_PROJECTS_ORDER => 'Yunshop\StoreProjects\common\models\ProjectsOrderService', - IncomeService::ZHP_REWARD => 'Yunshop\ZhpGroupLottery\models\ZhpRewardLogModel', - IncomeService::STORE_BALANCE_AWARD => 'Yunshop\StoreBalance\model\BalanceAward', - IncomeService::COMMISSION_EXTRA_BONUS => 'Yunshop\CommissionExtra\models\CommissionExtraBonusModel', - IncomeService::MERCHANT_MEETING_BONUS => 'Yunshop\MerchantMeeting\models\BonusModel', - IncomeService::GRATITUDE_REWARD_BONUS => 'Yunshop\GratitudeReward\models\BonusModel', - IncomeService::QQ_ADVERTISE_REWARD => 'Yunshop\QqAdvertise\models\QqAdvertiseRewardLogModel', - IncomeService::ORDER_QUANTITY_BONUS => 'Yunshop\OrderQuantityBonus\common\models\BonusRecords', - IncomeService::STAR_STORE => 'Yunshop\StarStore\models\StarStoreRewardLogModel', - IncomeService::DEALER_TASK_REWARD => 'Yunshop\DealerTaskReward\common\models\Reward', - IncomeService::NEW_WEIGHTED_DIVIDEND => 'Yunshop\NewWeightedDividend\common\models\DetailModel', - IncomeService::AGENCY_SUBSIDY_REWARD => 'Yunshop\AgencySubsidy\common\models\RewardsModel', - IncomeService::SALESMAN_DIVIDEND => 'Yunshop\SalesmanDividend\models\SalesmanDividendRewardLogModel', - IncomeService::FIND_POINT_REWARD => 'Yunshop\FindPointReward\common\models\RewardsModel', - IncomeService::SHARE_PARTNER_DIVIDEND => 'Yunshop\SharePartner\models\Dividend', - IncomeService::XZHH_POOL_REWARD => 'Yunshop\XzhhBonusPool\common\models\RewardsModel', - IncomeService::FIGHT_GROUPS_LOTTERY => 'Yunshop\FightGroupsLottery\models\FightGroupsLotteryRewardModel', - IncomeService::DISTRIBUTION_INCOME_REWARD => 'Yunshop\DistributionIncome\common\models\RewardsModel', - IncomeService::LOVE_SPEED_POOL_PLUS => 'Yunshop\LoveSpeedPool\model\PlusRecord', - IncomeService::PUBLIC_FUND_DIVIDEND => 'Yunshop\PublicFund\common\models\FundAmount', - IncomeService::CASH_BACK_REWARD => 'Yunshop\CashBack\common\Models\RewardModel', - IncomeService::ZHP_BONUS_POOL => 'Yunshop\ZhpBonusPool\models\ZhpBonusPoolDividendLogsModel', - IncomeService::AREA_MERCHANT_BONUS => 'Yunshop\AreaMerchant\common\models\BonusModel', - IncomeService::FK_DISTRIBUTION => 'Yunshop\FkDistribution\common\models\RewardsModel', - IncomeService::DISTRIBUTION_APPRECIATION => 'Yunshop\DistributionAppreciation\models\RewardsModel', - IncomeService::LAWYER_DIVIDEND => 'Yunshop\LawyerPlatform\common\models\LawyerDividend', - IncomeService::LAWYER_FIRM_DIVIDEND => 'Yunshop\LawyerPlatform\common\models\LawyerFirmDividend', - IncomeService::SUBSCRIPTION_BONUS => 'Yunshop\Subscription\common\models\BuyModel', - IncomeService::AGENT_EARNINGS => 'Yunshop\AgentEarnings\models\AgentEarningsOrderRewardRelevanceLogsModel', - IncomeService::JYK_ORDER => 'Yunshop\JykFindPoint\models\RewardsModel', - IncomeService::JYK_OTHERS => 'Yunshop\JykFindPoint\models\OthersModel', - IncomeService::NEWCOMER_FISSION => 'Yunshop\NewcomerFission\models\RewardsModel', - IncomeService::LOVE_QUEUE => 'Yunshop\LoveQueue\common\models\QueueDetailModel', - IncomeService::COMMISSION_POINT => 'Yunshop\CommissionPoint\models\CpointCommission', - IncomeService::COUPON_STORE_INCOME => 'Yunshop\CouponStore\models\Reward', - IncomeService::SIGN_BUY_MANAGE_AWARD => 'Yunshop\SignBuy\models\SignReward', - IncomeService::REDPACK_TOOL_INCOME => 'Yunshop\RedpackTool\model\RedpackManage', - IncomeService::PERFORMANCE_BONUS_NEW => 'Yunshop\PerformanceNew\common\model\PerformanceBonus', - IncomeService::STOCK_SERVICE_INCOME => 'Yunshop\StockService\models\IncomeModel', - IncomeService::TASK_PACKAGE_PLATFORM_FLOW_INCOME => "Yunshop\TaskPackage\models\TaskPackagePlatformFlowBonus", - IncomeService::LINK_MOVE_AWARD => "Yunshop\LinkMove\models\LinkMoveReward", - IncomeService::STATIC_POINT_DIVIDEND => "Yunshop\StaticPointDividend\models\StaticPointDividendRewardModel", - IncomeService::WEEKLY_REWARDS => "Yunshop\WeeklyRewards\models\RewardsModel", - IncomeService::CONSIGNMENT => "Yunshop\Consignment\common\models\SettlementRecordModel", - IncomeService::COFFEE_MACHINE_REWARD => "Yunshop\CoffeeMachine\models\Commission", - IncomeService::PERFORMANCE_PEER => "Yunshop\PerformancePeer\models\Log", - IncomeService::DISTRIBUTOR_TEAM => "Yunshop\DistributorTeam\models\RewardsModel", - IncomeService::BE_WITHIN_CALL => "Yunshop\BeWithinCall\models\Dividend", - IncomeService::ENERGY_REWARDS => "Yunshop\EnergyPool\models\RewardsDetailModel", - IncomeService::WISE_YUAN_TRADE_YUAN => "Yunshop\WiseYuanTrade\models\YuanPointRecord", - IncomeService::REGION_EXTERNAL_REWARD => "Yunshop\RegionExternalReward\common\models\BaseBonusRecordModel", - IncomeService::LINK_MOVE_AVERAGE_AWARD => 'Yunshop\linkMoveAverageDividend\models\AverageDividend', - IncomeService::RANKING_DIVIDEND_REWARD => 'Yunshop\RankingDividend\models\RewardsModel', - IncomeService::WISE_YUAN_TRADE_INCOME => 'Yunshop\WiseYuanTrade\models\OtherAssetsLog', - IncomeService::TXHL_BONUS_POOL_REWARD => 'Yunshop\TxBonusPool\models\RewardsModel', - IncomeService::COMMISSION_PERFORMANCE_REDPACK => 'Yunshop\CommissionPerformance\models\Redpack', - IncomeService::COMMISSION_PERFORMANCE => 'Yunshop\CommissionPerformance\models\DaySettle', - IncomeService::BALANCE_WITHDRAW_COMMISSION => 'Yunshop\BalanceWithdrawCommission\models\CommissionLog', - IncomeService::CONTRIBUTION_REWARD => 'Yunshop\Contribution\models\RewardsModel', - ]; - foreach ($classList as $code =>$class) { - \Illuminate\Support\Facades\DB::table('yz_member_income')->where('incometable_type',$class)->update(['dividend_code'=>$code]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_10_10_134832_alter_yz_member_income_unique_table.php b/database/migrations/2020_10_10_134832_alter_yz_member_income_unique_table.php deleted file mode 100644 index 7916b1d0..00000000 --- a/database/migrations/2020_10_10_134832_alter_yz_member_income_unique_table.php +++ /dev/null @@ -1,32 +0,0 @@ -index(['member_id','dividend_code','incometable_id']); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_10_12_161840_create_yz_dispatch_type_set_table.php b/database/migrations/2020_10_12_161840_create_yz_dispatch_type_set_table.php deleted file mode 100644 index 03036d2a..00000000 --- a/database/migrations/2020_10_12_161840_create_yz_dispatch_type_set_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('dispatch_type_id')->default(0)->index('dispatch_type_idx')->comment('配送方式ID'); - $table->tinyInteger('sort')->default(0)->nullable()->comment('排序'); - $table->tinyInteger('enable')->default(0)->nullable()->comment('是否开启'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_dispatch_type_set` comment '配送方式设置'");//表注释 - - } - - \app\common\models\DispatchType::whereIn('id', [1,8])->update([ - 'sort' => 0, - 'enable' => 1, - ]); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_dispatch_type_set'); - } -} diff --git a/database/migrations/2020_10_29_172635_update_mini_temp_uniacid.php b/database/migrations/2020_10_29_172635_update_mini_temp_uniacid.php deleted file mode 100644 index 918764cf..00000000 --- a/database/migrations/2020_10_29_172635_update_mini_temp_uniacid.php +++ /dev/null @@ -1,34 +0,0 @@ -integer("uniacid")->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_11_06_115644_add_min_buy_limit_to_yz_goods_privilege_table.php b/database/migrations/2020_11_06_115644_add_min_buy_limit_to_yz_goods_privilege_table.php deleted file mode 100644 index d1470345..00000000 --- a/database/migrations/2020_11_06_115644_add_min_buy_limit_to_yz_goods_privilege_table.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('min_buy_limit')->nullable()->default(0)->comment('会员起购数量'); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_11_09_181024_add_wechat_min_pay_to_yz_pay_type_table.php b/database/migrations/2020_11_09_181024_add_wechat_min_pay_to_yz_pay_type_table.php deleted file mode 100644 index 4c9de7bd..00000000 --- a/database/migrations/2020_11_09_181024_add_wechat_min_pay_to_yz_pay_type_table.php +++ /dev/null @@ -1,42 +0,0 @@ - 55, - 'name' => '微信小程序支付', - 'plugin_id' => 0, - 'code' => 'wechatMinPay', - 'type' => 2, - 'unit' => '元', - 'group_id' => 1, - 'setting_key' => 'plugin.min_app', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_11_20_144955_add_is_all_send_goods_to_order.php b/database/migrations/2020_11_20_144955_add_is_all_send_goods_to_order.php deleted file mode 100644 index 9b1b0a6d..00000000 --- a/database/migrations/2020_11_20_144955_add_is_all_send_goods_to_order.php +++ /dev/null @@ -1,37 +0,0 @@ -tinyInteger('is_all_send_goods')->nullable()->default(0)->comment('0 正常全部发货 1部分发货 2多包裹全部发货'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('is_all_send_goods'); - }); - } -} diff --git a/database/migrations/2020_11_20_145627_add_order_express_id_to_order_goods.php b/database/migrations/2020_11_20_145627_add_order_express_id_to_order_goods.php deleted file mode 100644 index 79b6d10d..00000000 --- a/database/migrations/2020_11_20_145627_add_order_express_id_to_order_goods.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('order_express_id')->nullable()->comment('order_express表id 商品属于哪个包裹'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order_goods', function (Blueprint $table) { - $table->dropColumn('order_express_id'); - }); - } -} diff --git a/database/migrations/2020_12_02_114534_create_ims_yz_member_lower_group_order.php b/database/migrations/2020_12_02_114534_create_ims_yz_member_lower_group_order.php deleted file mode 100644 index 833770ce..00000000 --- a/database/migrations/2020_12_02_114534_create_ims_yz_member_lower_group_order.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uid')->default(0)->comment('会员ID'); - $table->integer('uniacid')->default(0); - $table->integer('team_count')->default(0)->comment('团队总人数'); - $table->integer('goods_count')->default(0)->comment('支付订单商品总数'); - $table->integer('pay_count')->default(0)->comment('支付下线人数'); - $table->integer('amount')->default(0)->comment('支付订单总额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_member_lower_group_order comment '会员团队支付记录表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::drop('yz_member_lower_order'); - } -} diff --git a/database/migrations/2020_12_07_143600_second_time_change_become_goods_id_to_yz_member_relation.php b/database/migrations/2020_12_07_143600_second_time_change_become_goods_id_to_yz_member_relation.php deleted file mode 100644 index 08de92e6..00000000 --- a/database/migrations/2020_12_07_143600_second_time_change_become_goods_id_to_yz_member_relation.php +++ /dev/null @@ -1,38 +0,0 @@ -text('become_goods_id')->nullable()->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member_relation', function (Blueprint $table) { - if (Schema::hasColumn('yz_member_relation', 'become_goods_id')) { - $table->string('become_goods_id')->nullable()->default(0)->change(); - } - }); - } -} diff --git a/database/migrations/2020_12_08_145301_change_is_all_send_goods_to_ims_yz_order.php b/database/migrations/2020_12_08_145301_change_is_all_send_goods_to_ims_yz_order.php deleted file mode 100644 index 0ac2ff93..00000000 --- a/database/migrations/2020_12_08_145301_change_is_all_send_goods_to_ims_yz_order.php +++ /dev/null @@ -1,33 +0,0 @@ -Integer('is_all_send_goods')->nullable()->default(0)->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2020_12_08_150722_update_yz_official_website_theme_set_add_identification.php b/database/migrations/2020_12_08_150722_update_yz_official_website_theme_set_add_identification.php deleted file mode 100644 index 4ec1c563..00000000 --- a/database/migrations/2020_12_08_150722_update_yz_official_website_theme_set_add_identification.php +++ /dev/null @@ -1,923 +0,0 @@ -string("identification")->default("common")->comment("标识:用于前端显示时区别标题"); - } - }); - $data = [ - "id"=>11, - "title" => "官网2", - "is_default" => 0, - "basic" => '{"cus_url":"","cus_link":"","cus_mobile":"","cus_uniacid":1}', - "top" => '{"logo":"","is_sign":1,"navigation":[{"name":"\u9996\u9875","url":""},{"name":"\u89e3\u51b3\u65b9\u6848","url":""},{"name":"\u4ea7\u54c1\u4e2d\u5fc3","url":""},{"name":"\u8d44\u6e90\u4e2d\u5fc3","url":""},{"name":"\u5173\u4e8e\u6211\u4eec","url":""}]}', - "tail" => '<div class="bottom"> -<div class="bottom-a"> -<div class="bottom-left"> -<div class="bottom-left-one"> -<div class="bottom-left-title"> -<div class="bottom-left-title1">产品服务</div> -<div class="bottom-left-title2"><a href="">产品介绍</a></div> -<div class="bottom-left-title2"><a href="">解决方案</a></div> -<div class="bottom-left-title2"><a href="">立即登录</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">资源中心</div> -<div class="bottom-left-title2"><a href="">电子合同百科</a></div> -<div class="bottom-left-title2"><a href="">用户指南</a></div> -<div class="bottom-left-title2"><a href="">操作视频</a></div> -<div class="bottom-left-title2"><a href="">帮助中心</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">关于我们</div> -<div class="bottom-left-title2"><a href="">公司介绍</a></div> -<div class="bottom-left-title2"><a href="">联系我们</a></div> -</div> -<div class="bottom-left-title" style="flex: 2;"> -<div class="bottom-left-title1">联系我们</div> -<div class="bottom-left-title2">电话:020-2222222-2222222</div> -<div class="bottom-left-title2">邮箱:9572315554455@163.com</div> -<div class="bottom-left-title2">地址:广州市白云区</div> -</div> -</div> -</div> -<div class="bottom-right"> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫添加联系人企业微信</div> -</div> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫了解更多</div> -</div> -</div> -</div> -<div class="bottom-b"> -<div>备案号:11111111111111111111111111111111</div> -<div>备案号:11111111111111111111111111111111</div> -</div> -</div>', - "identification"=>"website", - "created_at" => time(), - "updated_at" => time() - ]; - \Illuminate\Support\Facades\DB::table('yz_official_website_theme_set')->insert($data); - - } - - if (Schema::hasTable('yz_official_website_multiple')) { - $multipe_data = [ - [ - "theme_id" => 11, - "name" => "首页", - "identification" => "default_home", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="container"> - <div class="wrap" style="left: -1200px"> - <img src="official/website/images/bg3.png" alt="" /> - <img src="official/website/images/bg1.jpg" alt="" /> - <img src="official/website/images/bg2.png" alt="" /> - <img src="official/website/images/bg3.png" alt="" /> - <img src="official/website/images/bg1.jpg" alt="" /> - </div> - <div class="buttons"> - <span class="on span-btn">1</span> - <span class="span-btn">2</span> - <span class="span-btn">3</span> - </div> - <a href="javascript:;" class="arrow arrow_left">&lt;</a> - <a href="javascript:;" class="arrow arrow_right">&gt;</a> - </div> - - <div class="tradition"> - <div class="tradition-title">做好生意 · 用好商城</div> - <div class="tradition-title2">强大完善的商城系统,助力商家取得成功</div> - <div class="tradition-con"> - <div class="tradition-con-li"> - <div class="tradition-con-li-img">适用行业</div> - <div class="tradition-con-li-text"> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-muyin@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 母婴 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-meishi@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 美食 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-meizhuang@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 美妆 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-jiaoyu@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 教育 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - </div> - - <hr class="tradition-con-li-hr" /> - <div class="tradition-con-li-link"> - <a href="#" style="color: #295ccd">了解更多></a> - </div> - </div> - - <div class="tradition-con-li"> - <div class="tradition-con-li-img">行业内应用</div> - <div class="tradition-con-li-text"> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-o2omendian@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - O2O门店 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-zulin@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 租赁 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-gongyinglian.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 聚合供应链 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/hetong-2@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 电子合同平台系统 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b"> - 母婴亲子,日用百货 - </div> - </div> - </div> - </a> - </div> - <hr class="tradition-con-li-hr" /> - <div class="tradition-con-li-link"> - <a href="#" style="color: #295ccd">了解更多></a> - </div> - </div> - <div class="tradition-con-li"> - <div class="tradition-con-li-img">营销类应用</div> - <div class="tradition-con-li-text"> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-fenruntixi@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 5大分润体系 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">5大分润体系</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/icon-zhinengihuace@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 智能画册 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">智能画册</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/mingpianmdpi@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 商城名片 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">商城名片</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/haibao-2@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 分享海报 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">分享海报</div> - </div> - </div> - </a> - </div> - <hr class="tradition-con-li-hr" /> - <div class="tradition-con-li-link"> - <a href="#" style="color: #295ccd">了解更多></a> - </div> - </div> - <div class="tradition-con-li"> - <div class="tradition-con-li-img">工具类应用</div> - <div class="tradition-con-li-text"> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/zhuangxiu@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 店铺装修 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">店铺装修</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/renlian@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 人脸支付 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">人脸支付</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/zhibo@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 小程序直播 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">小程序直播</div> - </div> - </div> - </a> - <a href="#"> - <div class="tradition-con-li-text2"> - <div class="tradition-con-li-text2-1"> - <img - src="official/website/images/jiayou@2x.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - <div class="tradition-con-li-text2-2"> - <div class="tradition-con-li-text2-2a"> - 易加油 - <span class="tradition-con-li-text2-2a-1">&gt;</span> - </div> - <div class="tradition-con-li-text2-2b">易加油</div> - </div> - </div> - </a> - </div> - <hr class="tradition-con-li-hr" /> - <div class="tradition-con-li-link"> - <a href="#" style="color: #295ccd">了解更多></a> - </div> - </div> - </div> - </div> - <div class="tradition" style="padding-top: 24px"> - <div class="tradition-title">做生意 · 找我们</div> - <div class="tradition-title2"> - 打造共赢生态,为商家提供全方位一站式服务 - </div> - <div class="win-top"> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon1.png" alt="" /> - </div> - <div class="win-top-li-title">在线客服</div> - <div class="win-top-li-title2">专业答疑,贴心陪伴</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon2.png" alt="" /> - </div> - <div class="win-top-li-title">视频教学</div> - <div class="win-top-li-title2">教你开店,教你运营</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon3.png" alt="" /> - </div> - <div class="win-top-li-title">有伴服务</div> - <div class="win-top-li-title2">服务经理,全程指导</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon4.png" alt="" /> - </div> - <div class="win-top-li-title">服务市场</div> - <div class="win-top-li-title2">装修 / 拍摄 / 代运营</div> - </a> - </div> - </div> - <div class="win-top"> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon5.png" alt="" /> - </div> - <div class="win-top-li-title">应用市场</div> - <div class="win-top-li-title2">各种玩法,应有尽有</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon6.png" alt="" /> - </div> - <div class="win-top-li-title">商家社区</div> - <div class="win-top-li-title2">产品动态,商家交流</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon7.png" alt="" /> - </div> - <div class="win-top-li-title">本地商盟</div> - <div class="win-top-li-title2">资源对接,抱团发展</div> - </a> - </div> - <div class="win-top-li"> - <a target="_blank" href="#"> - <div class="win-top-li-img"> - <img src="official/website/images/icon8.png" alt="" /> - </div> - <div class="win-top-li-title">定制服务</div> - <div class="win-top-li-title2">个性化需求,帮你实现</div> - </a> - </div> - </div> - </div> - <div class="tradition" style="padding-top: 24px"> - <div class="tradition-title">强大的技术团队 · 为您的商城护航</div> - <div class="tradition-title2"> - 系统稳定高于一切,让商家经营更有保障,更放心! - </div> - <div class="team-one"> - <div class="team-one-li team-one-li-bg1">更强大</div> - <div class="team-one-li team-one-li-bg2">更稳定</div> - <div class="team-one-li team-one-li-bg3">更科学</div> - </div> - <!-- 滚动数字 --> - <div class="team-two"> - <div class="team-two-li"> - <div class="team-two-li-num"><span id="num-1">336</span>万</div> - <div class="team-two-li-text">商家信赖首选</div> - </div> - <div class="team-two-li"> - <div class="team-two-li-num"><span id="num-2">112</span>个</div> - <div class="team-two-li-text">覆盖行业和类目</div> - </div> - <div class="team-two-li"> - <div class="team-two-li-num"><span id="num-3">2588</span>万</div> - <div class="team-two-li-text">在售商品</div> - </div> - <div class="team-two-li"> - <div class="team-two-li-num"><span id="num-4">218</span>亿</div> - <div class="team-two-li-text">成交金额</div> - </div> - </div> - </div> - <div class="tradition"> - <div class="case"> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - <div class="case-li"> - <div class="case-li-img"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 190px" - /> - <div class="case-li-img-a"> - <img - src="official/website/images/contact_part1.png" - alt="" - style="width: 100%; height: 100%" - /> - </div> - </div> - <div class="case-li-two"> - <div class="case-li-title">XXX玩具馆</div> - <div class="case-li-content"> - 幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁!幼儿绘本租赁,幼儿绘本租赁,幼儿绘本租赁幼儿绘本租赁幼儿绘本租赁! - </div> - </div> - </div> - - <div class="case-more" style="width: 100%"> - <a href="#"> - <div class="case-more-a">查看更多案例</div> - </a> - </div> - </div> - </div> - <div class="tradition" style="padding-top: 36px"> - <div class="tradition-title">合作伙伴</div> - <div class="company"> - <div class="company-top"> - <div class="company-img"> - <img src="official/website/images/brand1.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand2.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand3.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand4.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand5.png" alt="" /> - </div> - </div> - <div class="company-top"> - <div class="company-img"> - <img src="official/website/images/brand6.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand7.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand8.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand9.png" alt="" /> - </div> - <div class="company-img"> - <img src="official/website/images/brand10.png" alt="" /> - </div> - </div> - </div> - </div> - - <div class="touch"> - <div class="touch-left"> - <div class="touch-left-one">立即联系开店顾问</div> - <div class="touch-left-two">扫码咨询,早一步开店,早一步成功</div> - <div class="touch-left-three"> - <img src="official/website/images/contact_part1.png" alt="" /> - </div> - <div class="touch-left-one">电话:13333333XXX</div> - <div class="touch-left-two">工作时间:9:00-22:00</div> - </div> - <div class="touch-right"> - <div class="touch-left-one">留下您的联系方式</div> - <div class="touch-left-two">开店顾问会致电与您沟通</div> - <div class="touch-right-input"> - <input type="text" placeholder="姓名" id="name" /> - </div> - <div class="touch-right-input"> - <input type="text" placeholder="电话" id="tel" /> - </div> - <div class="touch-right-btn"> - <a onclick="submit()"><div>预约开店顾问</div></a> - </div> - </div> - </div> - - <div class="receive"> - <div class="receive-one">商城社交电商系统 · 免费版</div> - <div class="receive-two"> - <a href="#"><div>立即领取</div></a> - </div> - </div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 11, - "name" => "公司", - "identification" => "company", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="b_banner"> - <div class="b_banner-a"> - <div> - 你离成功就差 - </div> - <div> - 一个好的移动电商系统 - </div> - - </div> - </div> - <div class="b_brief"> - <div class="b_brief-left"> - <div class="b_brief-left-title1">公司简介</div> - <div class="b_brief-left-title2"></div> - <div class="b_brief-left-title3">公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介</div> - </div> - <div class="b_brief-right"> - <div class="b_brief-right-img"> - <img src="official/website/images/brief-1.png" alt=""> - </div> - </div> - </div> - <div class="b_culture"> - <div class="b_culture-a"> - <div class="b_culture-title1">公司文化</div> - <div class="b_culture-title2"></div> - <div class="b_culture-title3"> - 公司的使命 - </div> - <div class="b_culture-title4"> - 为客户利益而努力创新,持续为客户创造价值! - </div> - <div class="b_culture-title3"> - 公司的愿景 - </div> - <div class="b_culture-title4"> - 成为全球优秀领先的移动电商解决方案与服务提供商! - </div> - <div class="b_culture-title3"> - 公司的价值观 - </div> - <div class="b_culture-title4"> - 快乐工作,快乐生活! - </div> - - </div> - </div> - <div class="b_example"> - <div class="b_example-title"> - <div class="b_example-title1">公司实例</div> - <div class="b_example-title2"></div> - <div class="b_example-title3">4年专注移动电商系统研发</div> - <div class="b_example-title3">拥有数十项著作权,专利,高新技术产品</div> - </div> - <div class="b_example-img"> - <img src="official/website/images/brief-3.png" alt=""> - </div> - <div class="case-more" style="width:100%"> - <a href="#"> - <div class="case-more-a">了解更多>>></div> - </a> - </div> - </div> - <div class="b_touch-all"> - <div class="b_touch"> - <div class="b_touch-title1">联系我们</div> - <div class="b_touch-title2"></div> - <div class="b_touch-con"> - <div class="b_touch-left"> - <div class="b_touch-left-one">立即联系开店顾问</div> - <div class="b_touch-left-two">扫码咨询,早一步开店,早一步成功</div> - <div class="b_touch-left-three"> - <img src="official/website/images/contact_part1.png" alt=""> - </div> - <div class="b_touch-left-one">电话:13333333XXX</div> - <div class="b_touch-left-two">地址:广州市白云区机场路XXX号XXX栋X楼</div> - </div> - <div class="b_touch-right"> - <div class="b_touch-right-img"> - <img src="official/website/images/brief-4.png" alt="" style="width:310px;height:290px;"> - </div> - </div> - </div> - </div> - </div> - <div class="b_condition"> - <div class="b_condition-box"> - <div class="b_condition-title1">公司动态</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 11, - "name" => "文章列表", - "identification" => "resource_page", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 11, - "name" => "文章详情", - "identification" => "resource_detail", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - ]; - \Illuminate\Support\Facades\DB::table('yz_official_website_multiple')->insert($multipe_data); - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_12_11_094000_create_ims_yz_core_attachment_tags_table.php b/database/migrations/2020_12_11_094000_create_ims_yz_core_attachment_tags_table.php deleted file mode 100644 index 7b67ead6..00000000 --- a/database/migrations/2020_12_11_094000_create_ims_yz_core_attachment_tags_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true); - $table->string('title')->nullable(); - $table->integer('uniacid')->nullable(); - $table->integer('source_type')->comment('1图片2音频3视频'); - $table->integer('tag_type')->comment('1系统分组2自定义分组'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->integer('sort')->nullable(); - $table->string('timeline')->nullable()->default(null); - - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_core_attachment_tags comment '本地文件分组名称表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_core_attachment_tags'); - } - -} diff --git a/database/migrations/2020_12_11_094108_add_tag_id_to_attachment_table.php b/database/migrations/2020_12_11_094108_add_tag_id_to_attachment_table.php deleted file mode 100644 index 79176c1b..00000000 --- a/database/migrations/2020_12_11_094108_add_tag_id_to_attachment_table.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('tag_id')->nullable()->default(0); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_12_14_103656_update_yz_sys_msg_log_table.php b/database/migrations/2020_12_14_103656_update_yz_sys_msg_log_table.php deleted file mode 100644 index 9778b467..00000000 --- a/database/migrations/2020_12_14_103656_update_yz_sys_msg_log_table.php +++ /dev/null @@ -1,38 +0,0 @@ -text('redirect_param')->nullable()->comment('消息跳转所需参数'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_sys_msg_log', function (Blueprint $table) { - if (Schema::hasColumn('yz_sys_msg_log', 'redirect_param')) { - $table->dropColumn('redirect_param'); - } - }); - } -} diff --git a/database/migrations/2020_12_16_113503_create_yz_official_website_member_data.php b/database/migrations/2020_12_16_113503_create_yz_official_website_member_data.php deleted file mode 100644 index 4e83f858..00000000 --- a/database/migrations/2020_12_16_113503_create_yz_official_website_member_data.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id')->comment('主键id'); - $table->string('nickname')->default(0)->comment('姓名'); - $table->string('mobile')->nullable()->comment('手机'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_official_website_member_data comment '官网商城表单--用户数据表'"); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_official_website_member_data'); - } -} diff --git a/database/migrations/2020_12_16_172058_add_goods_id_index_to_yz_store_goods.php b/database/migrations/2020_12_16_172058_add_goods_id_index_to_yz_store_goods.php deleted file mode 100644 index 857eac56..00000000 --- a/database/migrations/2020_12_16_172058_add_goods_id_index_to_yz_store_goods.php +++ /dev/null @@ -1,40 +0,0 @@ -index(['goods_id'], 'idx_goods_id'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_store_goods')) { - if (Schema::hasColumn('yz_store_goods', 'goods_id')) { - Schema::table('yz_store_goods', function (Blueprint $table) { - $table->dropIndex('idx_goods_id'); - }); - } - } - } -} diff --git a/database/migrations/2020_12_17_112316_create_yz_wechat_qrcode_fans_table.php b/database/migrations/2020_12_17_112316_create_yz_wechat_qrcode_fans_table.php deleted file mode 100644 index 09a20990..00000000 --- a/database/migrations/2020_12_17_112316_create_yz_wechat_qrcode_fans_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_id')->index('idx_member_id')->comment('会员id'); - $table->string('openid', 50)->comment('微信openid'); - $table->string('nickname', 20)->comment('昵称'); - $table->boolean('gender')->default(0)->comment('性别,0女,1男'); - $table->string('avatar')->comment('头像'); - $table->string('province', 4)->comment('省'); - $table->string('city', 25)->comment('市'); - $table->string('country', 10)->comment('区'); - $table->integer('created_at')->unsigned()->default(0); - $table->integer('updated_at')->unsigned()->default(0); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_wechat_qrcode_fans` comment'会员--会员粉丝'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_wechat_qrcode_fans'); - } -} diff --git a/database/migrations/2020_12_22_111057_add_column_to_yz_member_coupon.php b/database/migrations/2020_12_22_111057_add_column_to_yz_member_coupon.php deleted file mode 100644 index af80959a..00000000 --- a/database/migrations/2020_12_22_111057_add_column_to_yz_member_coupon.php +++ /dev/null @@ -1,40 +0,0 @@ -string('expired_at', 100)->nullable()->default(''); - } - - }); - - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member_coupon', function (Blueprint $table) { - - $table->dropColumn('expired_at'); - }); - } -} diff --git a/database/migrations/2020_12_23_165342_create_yz_member_certified_table.php b/database/migrations/2020_12_23_165342_create_yz_member_certified_table.php deleted file mode 100644 index f8746746..00000000 --- a/database/migrations/2020_12_23_165342_create_yz_member_certified_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id')->comment('主键id'); - $table->string('realname',10)->comment('真实姓名'); - $table->string('idcard',30)->nullable()->comment('身份证'); - $table->string('remark',50)->nullable()->comment('备注'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->comment('关联会员id'); - $table->integer('order_id')->default(0)->nullable()->comment('关联订单id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_certified'); - } -} diff --git a/database/migrations/2020_12_25_142644_change_company_number_type_to_yz_order_invoice.php b/database/migrations/2020_12_25_142644_change_company_number_type_to_yz_order_invoice.php deleted file mode 100644 index b121570c..00000000 --- a/database/migrations/2020_12_25_142644_change_company_number_type_to_yz_order_invoice.php +++ /dev/null @@ -1,40 +0,0 @@ -string('company_number')->nullable()->comment('单位识别码')->change(); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_order_invoice')) { - if (Schema::hasColumn('yz_order_invoice', 'company_number')) { - Schema::table('yz_order_invoice', function (Blueprint $table) { - $table->integer('company_number')->nullable()->comment(' 单位识别码')->change(); - }); - } - } - } -} diff --git a/database/migrations/2020_12_29_164616_create_ims_yz_page_share_record_table.php b/database/migrations/2020_12_29_164616_create_ims_yz_page_share_record_table.php deleted file mode 100644 index d94464e0..00000000 --- a/database/migrations/2020_12_29_164616_create_ims_yz_page_share_record_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id')->comment('主键id'); - $table->integer('uniacid')->default(0); - $table->integer('member_id')->nullable()->index('memberid')->comment('分享者ID'); - $table->text('share_url', 65535)->nullable()->comment('分享链接'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() - . "yz_page_share_record comment '商城--页面分享记录表'");//表注释 - } - } - - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('ims_yz_page_share_record'); - } - -} diff --git a/database/migrations/2020_12_30_15501234_add_systemtype_to_yz_member_table.php b/database/migrations/2020_12_30_15501234_add_systemtype_to_yz_member_table.php deleted file mode 100644 index 4110b9d2..00000000 --- a/database/migrations/2020_12_30_15501234_add_systemtype_to_yz_member_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('system_type', 255)->nullable()->default(''); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_12_30_155044_add_lastlogintime_devicetype_to_yz_member_table.php b/database/migrations/2020_12_30_155044_add_lastlogintime_devicetype_to_yz_member_table.php deleted file mode 100644 index 0a68f4e1..00000000 --- a/database/migrations/2020_12_30_155044_add_lastlogintime_devicetype_to_yz_member_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('last_login_time')->nullable()->default(0); - } - if (!Schema::hasColumn('yz_member','system_type')) { - $table->string('system_type', 255)->nullable()->default(''); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2020_12_31_104039_add_wechat_native_to_yz_pay_type_table.php b/database/migrations/2020_12_31_104039_add_wechat_native_to_yz_pay_type_table.php deleted file mode 100644 index 43f31d4a..00000000 --- a/database/migrations/2020_12_31_104039_add_wechat_native_to_yz_pay_type_table.php +++ /dev/null @@ -1,54 +0,0 @@ - 57, - 'name' => '微信扫码支付', - 'plugin_id' => 0, - 'code' => 'wechatNative', - 'type' => 2, - 'unit' => '分', - 'group_id' => 1, - 'setting_key' => 'shop.pay.weixin', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - - if(\app\common\models\PayType::find(50)) { - \app\common\models\PayType::where('id', 50)->update(['group_id'=>1]); - } - - if(\app\common\models\PayType::find(55)) { - \app\common\models\PayType::where('id', 55)->update(['group_id'=>1]); - } - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_01_04_092445_create_yz_order_refund_change_log_table.php b/database/migrations/2021_01_04_092445_create_yz_order_refund_change_log_table.php deleted file mode 100644 index 050f9839..00000000 --- a/database/migrations/2021_01_04_092445_create_yz_order_refund_change_log_table.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true)->comment('主键ID'); - $table->integer('order_id')->nullable()->comment('订单ID'); - $table->integer('refund_id')->nullable()->comment('退款记录id'); - $table->decimal('old_price',14,2)->nullable()->default(0)->comment('旧金额'); - $table->decimal('new_price',14,2)->nullable()->default(0)->comment('新金额'); - $table->decimal('change_price',14,2)->nullable()->default(0)->comment('改价金额'); - $table->string('username',100)->default('')->comment('操作员名称'); - $table->integer('created_at')->nullable()->comment('创建时间'); - $table->integer('updated_at')->nullable()->comment('修改时间'); - $table->integer('deleted_at')->nullable()->comment('删除时间'); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_refund_change_log` comment '订单--退款金额修改记录'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_refund_change_log'); - } -} diff --git a/database/migrations/2021_01_04_101422_add_setting_data_to_synchronized_binder.php b/database/migrations/2021_01_04_101422_add_setting_data_to_synchronized_binder.php deleted file mode 100644 index f39d1be0..00000000 --- a/database/migrations/2021_01_04_101422_add_setting_data_to_synchronized_binder.php +++ /dev/null @@ -1,37 +0,0 @@ -text('setting_data')->nullable()->comment('当前会员设置'); - } - if (!Schema::hasColumn('yz_synchronized_binder', 'save_type')) { - $table->string('save_type')->default('')->nullable()->comment('保存类型'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_01_13_103331_create_yz_logistics_set.php b/database/migrations/2021_01_13_103331_create_yz_logistics_set.php deleted file mode 100644 index d62d0fd4..00000000 --- a/database/migrations/2021_01_13_103331_create_yz_logistics_set.php +++ /dev/null @@ -1,52 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('type')->default(0)->comment('类型'); - $table->text('data')->nullable()->comment('设置数据'); - $table->integer('status')->default(0)->nullable()->comment('状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - - $list = \Illuminate\Support\Facades\DB::table('yz_setting')->where('group','shop')->where('key','express_info')->get(); - - $data = []; - foreach ($list as $item) { - \Illuminate\Support\Facades\DB::table('yz_logistics_set')->insert([ - 'uniacid' => $item['uniacid'], - 'data' => $item['value'], - 'type' => 1 - ]); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_logistics_set` comment'物流查询设置表'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - Schema::dropIfExists('dispatch_classify'); - } -} diff --git a/database/migrations/2021_01_18_150616_add_timeline_to_attachment.php b/database/migrations/2021_01_18_150616_add_timeline_to_attachment.php deleted file mode 100644 index 5c443dfc..00000000 --- a/database/migrations/2021_01_18_150616_add_timeline_to_attachment.php +++ /dev/null @@ -1,37 +0,0 @@ -string('timeline')->nullable()->default('')->comment('时长'); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_01_21_103647_add_theme_to_yz_official_website_theme_set.php b/database/migrations/2021_01_21_103647_add_theme_to_yz_official_website_theme_set.php deleted file mode 100644 index d256b8f6..00000000 --- a/database/migrations/2021_01_21_103647_add_theme_to_yz_official_website_theme_set.php +++ /dev/null @@ -1,42 +0,0 @@ -15, - "title" => "商城PC端", - "is_default" => 0, - "basic" => '{"cus_url":"","cus_link":"","cus_mobile":"","cus_uniacid":1}', - "top" => '', - "tail" => '', - "identification"=>"uniacid_theme", - "created_at" => time(), - "updated_at" => time() - ]; - \Illuminate\Support\Facades\DB::table('yz_official_website_theme_set')->insert($data); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_01_29_114314_add_tag_id_to_core_attachment_table.php b/database/migrations/2021_01_29_114314_add_tag_id_to_core_attachment_table.php deleted file mode 100644 index a254cc17..00000000 --- a/database/migrations/2021_01_29_114314_add_tag_id_to_core_attachment_table.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('tag_id')->nullable()->default(0); - } - if (!Schema::hasColumn('core_attachment','timeline')) { - $table->string('timeline')->nullable()->default(''); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_02_26_105437_add_after_parent_id_and_status_to_yz_member_record_table.php b/database/migrations/2021_02_26_105437_add_after_parent_id_and_status_to_yz_member_record_table.php deleted file mode 100644 index 879a7d20..00000000 --- a/database/migrations/2021_02_26_105437_add_after_parent_id_and_status_to_yz_member_record_table.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('after_parent_id')->nullable()->default(0)->comment('修改后父级id'); - } - if (!Schema::hasColumn('yz_member_record', 'status')) { - $table->integer('status')->nullable()->default(1)->comment('0修改中,1修改成功,2修改失败'); - } - if (!Schema::hasColumn('yz_member_record', 'time')) { - $table->integer('time')->nullable()->default(0)->comment('耗时'); - } - }); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_03_08_101623_fix_data_to_order_income_count_table.php b/database/migrations/2021_03_08_101623_fix_data_to_order_income_count_table.php deleted file mode 100644 index 4ea84661..00000000 --- a/database/migrations/2021_03_08_101623_fix_data_to_order_income_count_table.php +++ /dev/null @@ -1,33 +0,0 @@ -where('day_time',0)->get(); - foreach ($data as $key=>$value) { - $day_time = strtotime(date('Ymd',$value['created_at'])); - \Illuminate\Support\Facades\DB::table('yz_order_income_count')->where('id',$value['id'])->update(['day_time'=>$day_time]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_03_11_094647_update_yz_goods_coupon_table_230311.php b/database/migrations/2021_03_11_094647_update_yz_goods_coupon_table_230311.php deleted file mode 100644 index 792dac4b..00000000 --- a/database/migrations/2021_03_11_094647_update_yz_goods_coupon_table_230311.php +++ /dev/null @@ -1,36 +0,0 @@ -tinyInteger('no_use')->default(0)->comment('禁止使用优惠券,1开启(不可使用),0关闭'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_coupon', function (Blueprint $table) { - $table->dropColumn('no_use'); - }); - } -} diff --git a/database/migrations/2021_03_29_111113_create_yz_yun_sign_switch_table.php b/database/migrations/2021_03_29_111113_create_yz_yun_sign_switch_table.php deleted file mode 100644 index 887d2f47..00000000 --- a/database/migrations/2021_03_29_111113_create_yz_yun_sign_switch_table.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->tinyInteger('switch_platform')->default(0)->nullable()->comment('开关'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_yun_sign_switch comment '平台开关设置表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_yun_sign_switch'); - } -} diff --git a/database/migrations/2021_04_15_094142_update_yz_order_discount210415_table.php b/database/migrations/2021_04_15_094142_update_yz_order_discount210415_table.php deleted file mode 100644 index f6efd77d..00000000 --- a/database/migrations/2021_04_15_094142_update_yz_order_discount210415_table.php +++ /dev/null @@ -1,37 +0,0 @@ -tinyInteger('no_show')->default(0)->comment('该优惠项目不在预下单显示,0否1是'); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order_discount', function (Blueprint $table) { - $table->dropColumn('no_show'); - }); - } -} diff --git a/database/migrations/2021_04_19_172523_create_yz_rich_text_table.php b/database/migrations/2021_04_19_172523_create_yz_rich_text_table.php deleted file mode 100644 index 600deb6a..00000000 --- a/database/migrations/2021_04_19_172523_create_yz_rich_text_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->string('group')->comment('组'); - $table->string('key')->comment('键'); - $table->longText('value')->nullable()->comment('富文本'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_rich_text comment '富文本存储表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_rich_text'); - } -} diff --git a/database/migrations/2021_04_19_193211_fix_data_to_yz_setting_agreement_table.php b/database/migrations/2021_04_19_193211_fix_data_to_yz_setting_agreement_table.php deleted file mode 100644 index bf579ae9..00000000 --- a/database/migrations/2021_04_19_193211_fix_data_to_yz_setting_agreement_table.php +++ /dev/null @@ -1,45 +0,0 @@ -where(['group'=>'shop','key'=>'shop'])->get(); - foreach ($data as $key => $value) { - $set_arr = unserialize($value['value']); - if (!isset($set_arr['agreement']) || empty($set_arr['agreement'])) { - continue; - } - $data = [ - 'uniacid' => $value['uniacid'], - 'group' => 'shop', - 'key' => 'agreement', - 'value' => $set_arr['agreement'], - 'created_at' => time(), - ]; - \Illuminate\Support\Facades\DB::table('yz_rich_text')->insert($data); - unset($set_arr['agreement']); - \Illuminate\Support\Facades\DB::table('yz_setting')->where(['uniacid'=>$value['uniacid'],'group'=>'shop','key'=>'shop'])->update(['value'=>serialize($set_arr)]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_04_21_175622_add_member_id_to_yz_admin_logs.php b/database/migrations/2021_04_21_175622_add_member_id_to_yz_admin_logs.php deleted file mode 100644 index c56887f3..00000000 --- a/database/migrations/2021_04_21_175622_add_member_id_to_yz_admin_logs.php +++ /dev/null @@ -1,48 +0,0 @@ -integer('member_id')->default(0)->after('ip')->comment('关联的会员id(实时记录)'); - } - - if (!Schema::hasColumn('yz_admin_logs','username')) { - $table->string('username',100)->default('')->nullable()->after('ip')->comment('登录账号'); - } - - if (!Schema::hasColumn('yz_admin_logs','deleted_at')) { - $table->integer('deleted_at')->nullable(); - } - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_admin_logs` comment '管理员登录日志表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_admin_logs', function (Blueprint $table) { - $table->dropColumn('member_id'); - $table->dropColumn('username'); - $table->dropColumn('deleted_at'); - }); - } -} diff --git a/database/migrations/2021_04_22_150935_add_balance_to_yz_deduction_table.php b/database/migrations/2021_04_22_150935_add_balance_to_yz_deduction_table.php deleted file mode 100644 index 855c0e6c..00000000 --- a/database/migrations/2021_04_22_150935_add_balance_to_yz_deduction_table.php +++ /dev/null @@ -1,30 +0,0 @@ -insert(['code' => 'balance', 'enable'=> 1, 'created_at'=>time(), 'update_at'=>time(), 'deleted_at'=> null]); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_04_25_093711_add_use_conditions_to_yz_coupon_table.php b/database/migrations/2021_04_25_093711_add_use_conditions_to_yz_coupon_table.php deleted file mode 100644 index 3fbbe6be..00000000 --- a/database/migrations/2021_04_25_093711_add_use_conditions_to_yz_coupon_table.php +++ /dev/null @@ -1,34 +0,0 @@ -longText('use_conditions')->nullable()->comment('使用条件'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_04_25_142210_add_use_num_to_yz_goods_coupon_table.php b/database/migrations/2021_04_25_142210_add_use_num_to_yz_goods_coupon_table.php deleted file mode 100644 index f3de2015..00000000 --- a/database/migrations/2021_04_25_142210_add_use_num_to_yz_goods_coupon_table.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('use_num')->nullable()->comment('可使用数量'); - } - if (!Schema::hasColumn('yz_goods_coupon','is_use_num')) { - $table->tinyInteger('is_use_num')->nullable()->default(0)->comment('可使用数量开关'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_05_10_172523_create_yz_member_position_table.php b/database/migrations/2021_05_10_172523_create_yz_member_position_table.php deleted file mode 100644 index 09722c8e..00000000 --- a/database/migrations/2021_05_10_172523_create_yz_member_position_table.php +++ /dev/null @@ -1,55 +0,0 @@ -increments('id', true)->comment('主键ID'); - $table->integer('uniacid')->default(0)->comment('公众号ID'); - $table->integer('member_id')->default(0)->comment('会员ID'); - - $table->string('province_name')->default('')->comment('省'); - $table->string('city_name')->default('')->comment('市'); - $table->string('district_name')->default('')->comment('区'); - - $table->string('longitude')->default('')->comment('经度'); - $table->string('latitude')->default('')->comment('纬度'); - - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_member_position comment '会员定位表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_member_position'); - } -} diff --git a/database/migrations/2021_05_19_114213_add_uniacid_column_to_yz_admin_log.php b/database/migrations/2021_05_19_114213_add_uniacid_column_to_yz_admin_log.php deleted file mode 100644 index 6fe977d5..00000000 --- a/database/migrations/2021_05_19_114213_add_uniacid_column_to_yz_admin_log.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('uniacid')->after('id')->default(0); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_admin_logs', function (Blueprint $table) { - $table->dropColumn('uniacid'); - }); - } -} diff --git a/database/migrations/2021_05_28_092225_migrate_settting_to_balance_pay_proving.php b/database/migrations/2021_05_28_092225_migrate_settting_to_balance_pay_proving.php deleted file mode 100644 index 66f913b8..00000000 --- a/database/migrations/2021_05_28_092225_migrate_settting_to_balance_pay_proving.php +++ /dev/null @@ -1,40 +0,0 @@ -uniacid = $u->uniacid; - - $payProving = Setting::get('shop.pay.balance_pay_proving'); - - if ($payProving == 1) { - Setting::set("pay_password.pay_state", '1'); - Setting::set("pay_password.balance", ['pay']); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_06_09_191531_add_income_id_index_to_yz_withdraw_income_apply_table.php b/database/migrations/2021_06_09_191531_add_income_id_index_to_yz_withdraw_income_apply_table.php deleted file mode 100644 index 4d1d6b00..00000000 --- a/database/migrations/2021_06_09_191531_add_income_id_index_to_yz_withdraw_income_apply_table.php +++ /dev/null @@ -1,44 +0,0 @@ -getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_withdraw_income_apply'); - $flag = true; - foreach ($all_index as $index) { - if (in_array('income_id',$index->getColumns())) { - $flag = false; - } - } - //存在索引就不添加 - $flag && $table->index('income_id'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_withdraw_income_apply', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2021_06_11_150722_add_theme_to_yz_official_website_theme_set_and_yz_official_website_multiple.php b/database/migrations/2021_06_11_150722_add_theme_to_yz_official_website_theme_set_and_yz_official_website_multiple.php deleted file mode 100644 index 9c978dd6..00000000 --- a/database/migrations/2021_06_11_150722_add_theme_to_yz_official_website_theme_set_and_yz_official_website_multiple.php +++ /dev/null @@ -1,283 +0,0 @@ -21, - "title" => "APP介绍官网", - "is_default" => 0, - "basic" => '{"cus_url":"","cus_link":"","cus_mobile":"","cus_uniacid":1}', - "top" => '{"logo":"","is_sign":1,"navigation":[{"name":"\u9996\u9875","url":""},{"name":"\u89e3\u51b3\u65b9\u6848","url":""},{"name":"\u4ea7\u54c1\u4e2d\u5fc3","url":""},{"name":"\u8d44\u6e90\u4e2d\u5fc3","url":""},{"name":"\u5173\u4e8e\u6211\u4eec","url":""}]}', - "tail" => '<div class="bottom"> -<div class="bottom-a"> -<div class="bottom-left"> -<div class="bottom-left-one"> -<div class="bottom-left-title"> -<div class="bottom-left-title1">产品服务</div> -<div class="bottom-left-title2"><a href="">产品介绍</a></div> -<div class="bottom-left-title2"><a href="">解决方案</a></div> -<div class="bottom-left-title2"><a href="">立即登录</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">资源中心</div> -<div class="bottom-left-title2"><a href="">电子合同百科</a></div> -<div class="bottom-left-title2"><a href="">用户指南</a></div> -<div class="bottom-left-title2"><a href="">操作视频</a></div> -<div class="bottom-left-title2"><a href="">帮助中心</a></div> -</div> -<div class="bottom-left-title"> -<div class="bottom-left-title1">关于我们</div> -<div class="bottom-left-title2"><a href="">公司介绍</a></div> -<div class="bottom-left-title2"><a href="">联系我们</a></div> -</div> -<div class="bottom-left-title" style="flex: 2;"> -<div class="bottom-left-title1">联系我们</div> -<div class="bottom-left-title2">电话:020-2222222-2222222</div> -<div class="bottom-left-title2">邮箱:9572315554455@163.com</div> -<div class="bottom-left-title2">地址:广州市白云区</div> -</div> -</div> -</div> -<div class="bottom-right"> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫添加联系人企业微信</div> -</div> -<div class="bottom-right-img"><img src="official/images/footer_qr_contact.png" alt="" /> -<div class="bottom-right-tip">扫一扫了解更多</div> -</div> -</div> -</div> -<div class="bottom-b"> -<div>备案号:11111111111111111111111111111111</div> -<div>备案号:11111111111111111111111111111111</div> -</div> -</div>', - "identification"=>"website", - "created_at" => time(), - "updated_at" => time() - ]; - \Illuminate\Support\Facades\DB::table('yz_official_website_theme_set')->insert($data); - - } - - if (Schema::hasTable('yz_official_website_multiple')) { - $multipe_data = [ - [ - "theme_id" => 21, - "name" => "首页", - "identification" => "default_home", - "mul_title" => "app介绍", - "keyword" => "app介绍", - "describe" => "app介绍", - "detail" => ' <div class="swiper-slide home_page"><img src="official/website/images/app_introduce/banner.png" alt="" /></div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="image_contain"> - <img src="official/website/images/app_introduce/prototype.png" alt="" class="img_frame" /> - <img src="official/website/images/app_introduce/first.png" alt="" class="img_detail" /> - </div> - <div class="contain"> - <span class="contain_title">聚合CPS</span> - <span class="contain_describe" - >用户通过聚合CPS插件APP跳转第三方(淘宝、京东、拼多多、美团、大众点评、携程、口碑、苏宁等平台)消费后,第三方会给到平台返佣,我们可以基于该返佣奖励给会员一部分、推荐者一部分、剩余的即为平台利润!</span - > - </div> - </div> - </div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="contain"> - <span class="contain_title">带货直播</span> - <span class="contain_describe" - >带货直播基于腾讯云直播深度结合社交电商系统开发,链接微信私域流量,达到粉丝共享,助力转化现有私域流量,实现流量间的裂变!集社交+直播+电商为一体的新零售转化系统。</span - > - </div> - <div class="image_contain"> - <img src="official/website/images/app_introduce/prototype.png" alt="" class="img_frame_odd" /> - <img src="official/website/images/app_introduce/first.png" alt="" class="img_detail_odd" /> - </div> - </div> - </div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="image_contain"> - <img src="official/website/images/app_introduce/prototype.png" alt="" class="img_frame" /> - <img src="official/website/images/app_introduce/first.png" alt="" class="img_detail" /> - </div> - <div class="contain"> - <span class="contain_title">020-门店收银台</span> - <span class="contain_describe">门店入驻平台,可以设置收银台扫码支付、销售门店商品,平台收取门店交易收入的百分比提成,支持收银台、门店分开设置结算提成比例.</span> - </div> - </div> - </div> - <div class="swiper-slide home_detail"> - <div class="top_detail last_detail"> - <div class="contain"> - <span class="contain_title">AI智能测肤</span> - <span class="contain_describe" - >一款人工智能测肤工具,通过AI智能检测,对用户的皮肤状况进行分析诊断,肤质检测报告快速准确,当即知道肤质状况,同时针对不同的肌肤问题为用户提供合理的解决方案,帮助用户解决肌肤管理问题。</span - > - </div> - <div class="image_contain"> - <img src="official/website/images/app_introduce/prototype.png" alt="" class="img_frame_odd" /> - <img src="official/website/images/app_introduce/first.png" alt="" class="img_detail_odd" /> - </div> - </div> - </div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 21, - "name" => "公司", - "identification" => "company", - "mul_title" => "测试", - "keyword" => "测试", - "describe" => "测试", - "detail" => '<div class="b_banner"> - <div class="b_banner-a"> - <div> - 你离成功就差 - </div> - <div> - 一个好的移动电商系统 - </div> - - </div> - </div> - <div class="b_brief"> - <div class="b_brief-left"> - <div class="b_brief-left-title1">公司简介</div> - <div class="b_brief-left-title2"></div> - <div class="b_brief-left-title3">公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介公司简介</div> - </div> - <div class="b_brief-right"> - <div class="b_brief-right-img"> - <img src="official/website/images/brief-1.png" alt=""> - </div> - </div> - </div> - <div class="b_culture"> - <div class="b_culture-a"> - <div class="b_culture-title1">公司文化</div> - <div class="b_culture-title2"></div> - <div class="b_culture-title3"> - 公司的使命 - </div> - <div class="b_culture-title4"> - 为客户利益而努力创新,持续为客户创造价值! - </div> - <div class="b_culture-title3"> - 公司的愿景 - </div> - <div class="b_culture-title4"> - 成为全球优秀领先的移动电商解决方案与服务提供商! - </div> - <div class="b_culture-title3"> - 公司的价值观 - </div> - <div class="b_culture-title4"> - 快乐工作,快乐生活! - </div> - - </div> - </div> - <div class="b_example"> - <div class="b_example-title"> - <div class="b_example-title1">公司实例</div> - <div class="b_example-title2"></div> - <div class="b_example-title3">4年专注移动电商系统研发</div> - <div class="b_example-title3">拥有数十项著作权,专利,高新技术产品</div> - </div> - <div class="b_example-img"> - <img src="official/website/images/brief-3.png" alt=""> - </div> - <div class="case-more" style="width:100%"> - <a href="#"> - <div class="case-more-a">了解更多>>></div> - </a> - </div> - </div> - <div class="b_touch-all"> - <div class="b_touch"> - <div class="b_touch-title1">联系我们</div> - <div class="b_touch-title2"></div> - <div class="b_touch-con"> - <div class="b_touch-left"> - <div class="b_touch-left-one">立即联系开店顾问</div> - <div class="b_touch-left-two">扫码咨询,早一步开店,早一步成功</div> - <div class="b_touch-left-three"> - <img src="official/website/images/contact_part1.png" alt=""> - </div> - <div class="b_touch-left-one">电话:13333333XXX</div> - <div class="b_touch-left-two">地址:广州市白云区机场路XXX号XXX栋X楼</div> - </div> - <div class="b_touch-right"> - <div class="b_touch-right-img"> - <img src="official/website/images/brief-4.png" alt="" style="width:310px;height:290px;"> - </div> - </div> - </div> - </div> - </div> - <div class="b_condition"> - <div class="b_condition-box"> - <div class="b_condition-title1">公司动态</div>', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 21, - "name" => "文章列表", - "identification" => "resource_page", - "mul_title" => "app介绍", - "keyword" => "app介绍", - "describe" => "app介绍", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - [ - "theme_id" => 21, - "name" => "文章详情", - "identification" => "resource_detail", - "mul_title" => "app介绍", - "keyword" => "app介绍", - "describe" => "app介绍", - "detail" => '', - "url" => '', - "created_at" => time(), - "updated_at" => time(), - ], - ]; - \Illuminate\Support\Facades\DB::table('yz_official_website_multiple')->insert($multipe_data); - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_06_15_105847_add_balance_deduct_to_yz_goods_sale_table.php b/database/migrations/2021_06_15_105847_add_balance_deduct_to_yz_goods_sale_table.php deleted file mode 100644 index cd7e7c34..00000000 --- a/database/migrations/2021_06_15_105847_add_balance_deduct_to_yz_goods_sale_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('balance_deduct')->default(1)->comment('余额抵扣开关'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_06_24_172523_create_yz_withdraw_merge_servicetax_rate_table.php b/database/migrations/2021_06_24_172523_create_yz_withdraw_merge_servicetax_rate_table.php deleted file mode 100644 index 09732d9f..00000000 --- a/database/migrations/2021_06_24_172523_create_yz_withdraw_merge_servicetax_rate_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id', true)->comment('主键ID'); - $table->integer('uniacid')->comment('公众号ID'); - $table->integer('withdraw_id')->comment('提现记录id'); - $table->decimal('servicetax_rate',10,2)->comment('合并劳务费比例'); - $table->tinyInteger('is_disabled')->default(0)->comment('是否有效 0有效 1失效'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_withdraw_merge_servicetax_rate comment '合并提现劳务费比例表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_withdraw_merge_servicetax_rate'); - } -} diff --git a/database/migrations/2021_06_25_151126_create_yz_order_behalf_pay_record_table.php b/database/migrations/2021_06_25_151126_create_yz_order_behalf_pay_record_table.php deleted file mode 100644 index ef46ecfd..00000000 --- a/database/migrations/2021_06_25_151126_create_yz_order_behalf_pay_record_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->string('order_ids', 500)->default('')->comment('订单号合集'); - $table->integer('order_pay_id')->comment('订单支付表id'); - $table->string('pay_sn', 23)->default('')->comment('支付单号'); - $table->integer('member_id')->comment('订单会员id'); - $table->integer('behalf_id')->comment('代付人id'); - $table->integer('behalf_type')->default(1)->comment('1是找人代付,2是上级代付'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_order_behalf_pay_record comment '代付记录表'"); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_behalf_pay_record'); - } -} diff --git a/database/migrations/2021_06_28_101426_update_password_change_yz_system_setting_table.php b/database/migrations/2021_06_28_101426_update_password_change_yz_system_setting_table.php deleted file mode 100644 index c4007fd8..00000000 --- a/database/migrations/2021_06_28_101426_update_password_change_yz_system_setting_table.php +++ /dev/null @@ -1,49 +0,0 @@ -where('key','loginset')->first(); - if (empty($login_set)) { - // 添加 - $data['password_verify'] = "1"; - $data = serialize($data); - \Illuminate\Support\Facades\DB::table('yz_system_setting')->insert([ - 'key' => 'loginset', - 'value' => $data, - 'created_at' => time(), - 'updated_at' => time(), - ]); - } else { - $data = unserialize($login_set['value']); - $data['password_verify'] = "1"; - $data = serialize($data); - // 修改 - \Illuminate\Support\Facades\DB::table('yz_system_setting')->where('key', 'loginset')->update(['value' => $data]); - } - \app\common\helpers\Cache::forget('system_loginset'); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_08_02_104911_create_yz_member_cancel_record_table.php b/database/migrations/2021_08_02_104911_create_yz_member_cancel_record_table.php deleted file mode 100644 index 7521a7a2..00000000 --- a/database/migrations/2021_08_02_104911_create_yz_member_cancel_record_table.php +++ /dev/null @@ -1,40 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('member_id')->default(0)->nullable(); - $table->integer('status')->default(1)->comment('审核状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_member_cancel_record comment '账号注销审核记录'"); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_cancel_record'); - } -} diff --git a/database/migrations/2021_08_02_113511_create_yz_member_cancel_set_table.php b/database/migrations/2021_08_02_113511_create_yz_member_cancel_set_table.php deleted file mode 100644 index c01ea4ac..00000000 --- a/database/migrations/2021_08_02_113511_create_yz_member_cancel_set_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->tinyInteger('status')->default(1)->nullable(); - $table->tinyInteger('tel_status')->default(1)->nullable(); - $table->string('title')->nullable()->comment('标题'); - $table->text('content')->nullable()->comment('内容'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix()."yz_member_cancel_set comment '账号注销审核设置'"); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_cancel_set'); - } -} diff --git a/database/migrations/2021_08_11_093150_add_display_name_to_limitbuy.php b/database/migrations/2021_08_11_093150_add_display_name_to_limitbuy.php deleted file mode 100644 index 6d46858d..00000000 --- a/database/migrations/2021_08_11_093150_add_display_name_to_limitbuy.php +++ /dev/null @@ -1,34 +0,0 @@ -string('display_name')->default("限时购")->comment('自定义前端命名'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_08_11_104303_create_goods_advertising.php b/database/migrations/2021_08_11_104303_create_goods_advertising.php deleted file mode 100644 index 0d74472d..00000000 --- a/database/migrations/2021_08_11_104303_create_goods_advertising.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('uniacid'); - $table->integer('goods_id')->index(); - $table->integer('is_open')->default("0")->comment('广告宣传语开关'); - $table->string('copywriting')->default("")->comment('文案'); - $table->integer('created_at')->nullable()->comment('创建时间'); - $table->integer('updated_at')->nullable()->comment('修改时间'); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_goods_advertising` comment'商品--广告宣传语记录表'");//表注释 - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_08_16_150722_change_theme_of_yz_official_website_multiple.php b/database/migrations/2021_08_16_150722_change_theme_of_yz_official_website_multiple.php deleted file mode 100644 index 5f71748c..00000000 --- a/database/migrations/2021_08_16_150722_change_theme_of_yz_official_website_multiple.php +++ /dev/null @@ -1,139 +0,0 @@ -' <div class="swiper-slide home_page"><img src="official/website/images/app_introduce/banner.png" alt="" /></div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="contain"> - <div class="top_introduce"> - <span class="title">中国主流的社交商城系统</span> - <span class="describe">满足市场20多种社交商城模式</span> - <span class="objective">目前:帮您提供在线上做生意做业务的工具,让您在线上实现成交,让电商成为企业增长核心驱动力。</span> - </div> - <div class="buttom_introduce"> - <div class="left_func"> - <div > - <div><i class="iconfont icon-fontclass-huiyuankaquanrukou"></i></div> - <span class="title">社交电商</span> - </div> - <span class="describe">根据您的需求匹配现有功能,提供多行业多场景的标准电商系统解决方案。</span> - </div> - <div class="right_func"> - <div> - <div><i class="iconfont icon-fontclass-yue"></i></div> - <span class="title">定制开发</span> - </div> - <span class="describe">根据客户业务需求,梳理业务流程,为客户制定开发个性化商城系统。</span> - </div> - </div> - </div> - <div class="image_contain"> - <span class="image_line"></span> - <img src="official/website/images/app_introduce/shape.png" alt="" class="screen" /> - <img src="official/website/images/app_introduce/images_detail_1.png" alt="" class="img_detail" /> - <img src="official/website/images/app_introduce/screen.png" alt="" class="shap" /> - </div> - </div> - </div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="image_contain"> - <span class="image_line"></span> - <img src="official/website/images/app_introduce/shape.png" alt="" class="screen" /> - <img src="official/website/images/app_introduce/images_detail_2.png" alt="" class="img_detail" /> - <img src="official/website/images/app_introduce/screen.png" alt="" class="shap" /> - </div> - <div class="contain"> - <div class="top_introduce"> - <span class="title">中国主流的社交商城系统</span> - <span class="describe">满足多平台一键开店六网合一</span> - <span class="objective">微信公众号、小程序、app、支付宝、pc端、wap等多个平台,数据同步,统一管理,全方位引流,聚合流量曝光引流。</span> - </div> - <div class="buttom_introduce"> - <div class="left_func"> - <div > - <div><i class="iconfont icon-fontclass-dashang"></i></div> - <span class="title">微信视频号</span> - </div> - <span class="describe">基于微信生态,打通微信视频号等多种功能,可实现视频号拓展链接,视频号直播带货,撬动12亿活跃用户流量。</span> - </div> - <div class="right_func"> - <div> - <div><i class="iconfont icon-ht_content_goods"></i></div> - <span class="title">企业微信号</span> - </div> - <span class="describe">基于企微管理功能,对接企业微信客服消息通知,实现企业微信群引流,群拓客,群锁客效果,助力企业高效管理。</span> - </div> - </div> - </div> - </div> - </div> - <div class="swiper-slide home_detail"> - <div class="top_detail"> - <div class="contain"> - <div class="top_introduce"> - <span class="title">中国主流的社交商城系统</span> - <span class="describe">满足多样化业务分润模式</span> - <span class="objective">完善的分润机制,帮助商家快速裂变推广,助力企业打造“多样化业务模式+高效率成单分润”全网电商平台。</span> - </div> - <div class="buttom_introduce"> - <div class="left_func"> - <div > - <div><i class="iconfont icon-fontclass-jilu"></i></div> - <span class="title">推客分红</span> - </div> - <span class="describe">多等级身份二级分销功能,实现“自购省钱,分享赚钱”的社交电商平台,进入全民带货新时代。</span> - </div> - <div class="right_func"> - <div> - <div><i class="iconfont icon-fontclass-daili"></i></div> - <span class="title">拼团分红</span> - </div> - <span class="describe">阶梯拼团,拼团奖励,抢团等多种拼团玩法,快速传播裂变,提升拉新效率,占领电商万亿风口。</span> - </div> - </div> - </div> - <div class="image_contain"> - <span class="image_line"></span> - <img src="official/website/images/app_introduce/shape.png" alt="" class="screen" /> - <img src="official/website/images/app_introduce/images_detail_3.png" alt="" class="img_detail" /> - <img src="official/website/images/app_introduce/screen.png" alt="" class="shap" /> - </div> - </div> - </div>' - ]; - - \Illuminate\Support\Facades\DB::table('yz_official_website_multiple') - ->where('theme_id',21) - ->where('identification','default_home') - ->update($update_data); - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_08_24_191531_add_get_limit_type_to_yz_coupon_table.php b/database/migrations/2021_08_24_191531_add_get_limit_type_to_yz_coupon_table.php deleted file mode 100644 index 7db0b228..00000000 --- a/database/migrations/2021_08_24_191531_add_get_limit_type_to_yz_coupon_table.php +++ /dev/null @@ -1,39 +0,0 @@ -tinyInteger('get_limit_type')->after('get_max')->default(0)->comment('每人每日限领状态'); - } - if(!Schema::hasColumn('yz_coupon','get_limit_max')){ - $table->integer('get_limit_max')->after('get_max')->default(0)->comment('每人每日限领数量'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_coupon', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2021_08_31_172523_create_yz_business_plat_log_table.php b/database/migrations/2021_08_31_172523_create_yz_business_plat_log_table.php deleted file mode 100644 index 42972753..00000000 --- a/database/migrations/2021_08_31_172523_create_yz_business_plat_log_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('uid')->comment('会员id'); - $table->integer('final_plat_id')->default(0)->comment('最后管理的企业id'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->unique('uid'); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_plat_log comment '企业PC端-企业管理记录'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_plat_log'); - } -} diff --git a/database/migrations/2021_09_02_172523_create_yz_business_manager_list_table.php b/database/migrations/2021_09_02_172523_create_yz_business_manager_list_table.php deleted file mode 100644 index 2ef0e414..00000000 --- a/database/migrations/2021_09_02_172523_create_yz_business_manager_list_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('uid')->comment('会员id'); - $table->integer('business_id')->comment('企业id'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_manager_list comment '企业PC端-管理员表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_manager_list'); - } -} diff --git a/database/migrations/2021_09_02_172524_create_yz_business_staff_table.php b/database/migrations/2021_09_02_172524_create_yz_business_staff_table.php deleted file mode 100644 index e2860ec2..00000000 --- a/database/migrations/2021_09_02_172524_create_yz_business_staff_table.php +++ /dev/null @@ -1,64 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('business_id')->comment('企业ID'); - $table->integer('uid')->default(0)->comment('会员id'); - $table->string('user_id')->default('')->comment('成员UserID。对应管理端的帐号'); - $table->string('name')->default('')->comment('成员名称'); - $table->string('mobile')->default('')->comment('手机号'); -// $table->text('department_id_arr')->comment('成员部门数据,序列化'); - $table->string('position')->dafault('')->comment('职务'); - $table->tinyInteger('gender')->default(0)->comment('0未知 1男 2女'); - $table->string('telephone')->default('')->comment('固话'); - $table->string('email')->default('')->comment('邮箱地址'); - $table->string('avatar')->default('')->comment('头像'); - $table->string('alias')->default('')->comment('别名'); - $table->tinyInteger('status')->default(0)->comment('0未关联 1=已激活,2=已禁用,4=未激活,5=退出企业'); - $table->string('qr_code')->default('')->comment('员工个人二维码'); - $table->string('address')->default('')->comment('员工地址'); - $table->string('open_userid')->default('')->comment('成员第三方唯一标识代码'); - $table->string('main_department')->default('')->comment('主部门'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index('business_id'); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_staff comment '企业PC端-企业员工表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_staff'); - } -} diff --git a/database/migrations/2021_09_02_172525_create_yz_business_department_staff_table.php b/database/migrations/2021_09_02_172525_create_yz_business_department_staff_table.php deleted file mode 100644 index a1332733..00000000 --- a/database/migrations/2021_09_02_172525_create_yz_business_department_staff_table.php +++ /dev/null @@ -1,52 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('business_id')->comment('企业ID'); - $table->integer('staff_id')->default(0)->comment('企业员工id,yz_business_staff表id'); - $table->integer('department_id')->comment('部门id'); - $table->integer('is_leader')->comment('是否部门领导'); - $table->integer('sort')->comment('部门排序'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index(['business_id', 'department_id', 'staff_id'], 'business_department_staff_index_bds'); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_department_staff comment '企业PC端-企业员工表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_department_staff'); - } -} diff --git a/database/migrations/2021_09_02_172526_create_yz_business_department_table.php b/database/migrations/2021_09_02_172526_create_yz_business_department_table.php deleted file mode 100644 index 6458ab91..00000000 --- a/database/migrations/2021_09_02_172526_create_yz_business_department_table.php +++ /dev/null @@ -1,54 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('business_id')->comment('企业ID'); - $table->string('name')->default('')->comment('部门名称'); - $table->string('en_name')->default('')->comment('部门英文名称'); - $table->integer('level')->comment('层级'); - $table->integer('parent_id')->comment('上级部门id'); - $table->integer('wechat_department_id')->default(0)->comment('企业微信部门id'); - $table->integer('order')->comment('部门排序'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index(['business_id','wechat_department_id'],'business_department_index_business_wechat'); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_department comment '企业PC端-企业部门表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_department'); - } -} diff --git a/database/migrations/2021_09_03_160547_create_yz_work_wechat_platform_crop_table.php b/database/migrations/2021_09_03_160547_create_yz_work_wechat_platform_crop_table.php deleted file mode 100644 index 9e850adc..00000000 --- a/database/migrations/2021_09_03_160547_create_yz_work_wechat_platform_crop_table.php +++ /dev/null @@ -1,42 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0)->nullable(); - $table->integer('uid')->default(0)->comment('管理员uid'); - $table->string('name',500)->default('')->comment('名称'); - $table->string('logo_img',500)->default('logo'); - $table->integer('status')->default(1)->comment('状态:1正常,-1停用'); - $table->integer('member_uid')->default(0)->comment('会员uid'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_work_wechat_platform_crop` comment '企业微信--企业应用表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_work_wechat_platform_crop'); - } -} diff --git a/database/migrations/2021_09_03_161627_add_close_reason_to_yz_order_table.php b/database/migrations/2021_09_03_161627_add_close_reason_to_yz_order_table.php deleted file mode 100644 index b8f18230..00000000 --- a/database/migrations/2021_09_03_161627_add_close_reason_to_yz_order_table.php +++ /dev/null @@ -1,38 +0,0 @@ -text('close_reason')->nullable()->comment('关闭原因'); - } - - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order', function (Blueprint $table) { - - }); - } -} diff --git a/database/migrations/2021_09_06_165433_add_multiple_field_to_yz_goods_advertising_table.php b/database/migrations/2021_09_06_165433_add_multiple_field_to_yz_goods_advertising_table.php deleted file mode 100644 index 70240a3a..00000000 --- a/database/migrations/2021_09_06_165433_add_multiple_field_to_yz_goods_advertising_table.php +++ /dev/null @@ -1,45 +0,0 @@ -integer('font_size')->default(0)->comment('字体大小'); - } - if (!Schema::hasColumn('yz_goods_advertising','font_color')) { - $table->string('font_color')->default('')->comment('字体颜色'); - } - if (!Schema::hasColumn('yz_goods_advertising','link')) { - $table->string('link')->default('')->comment('链接'); - } - if (!Schema::hasColumn('yz_goods_advertising','font_size')) { - $table->string('min_link')->default('')->comment('小程序链接'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_advertising', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2021_09_13_172526_create_yz_business_permission_table.php b/database/migrations/2021_09_13_172526_create_yz_business_permission_table.php deleted file mode 100644 index ef67b54e..00000000 --- a/database/migrations/2021_09_13_172526_create_yz_business_permission_table.php +++ /dev/null @@ -1,53 +0,0 @@ -increments('id')->comment('主键ID'); - $table->integer('uniacid')->comment('公众号id'); - $table->integer('business_id')->comment('企业ID'); - $table->integer('department_id')->default(0)->comment('部门id'); - $table->integer('staff_id')->default(0)->comment('员工id'); - $table->tinyInteger('type')->comment('1部门员工权限 2部门领导权限 3用户独立权限'); - $table->string('module')->default('')->comment('模块名或插件名,如admin,frontend,yun-sign'); - $table->string('route')->default('')->comment('路由名'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index(['business_id', 'department_id', 'staff_id'],'business_permission_index_business_department_staff'); - }); - } - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_business_permission comment '企业PC端-部门员工权限表'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::drop('yz_business_permission'); - } -} diff --git a/database/migrations/2021_09_14_191531_add_right_type_to_yz_business_staff_table.php b/database/migrations/2021_09_14_191531_add_right_type_to_yz_business_staff_table.php deleted file mode 100644 index d25cb203..00000000 --- a/database/migrations/2021_09_14_191531_add_right_type_to_yz_business_staff_table.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('right_type')->default(0)->comment('权限类型 0部门权限 1成员独立权限'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_09_17_114924_create_yz_order_plugin_table.php b/database/migrations/2021_09_17_114924_create_yz_order_plugin_table.php deleted file mode 100644 index 4195c6cc..00000000 --- a/database/migrations/2021_09_17_114924_create_yz_order_plugin_table.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('order_id')->comment('订单plugin_id'); - $table->integer('main_plugin_id')->comment('订单plugin_id'); - $table->integer('sub_plugin_id')->comment('订单商品plugin_id,注:不同plugin_id的商品会分单,不存在一个订单里有多个不同plugin_id的商品'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - $table->index('order_id'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE ".app('db')->getTablePrefix() - ."yz_order_plugin comment '订单--订单商品插件表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_plugin'); - } -} diff --git a/database/migrations/2021_09_17_191531_add_disabled_to_yz_business_staff_table.php b/database/migrations/2021_09_17_191531_add_disabled_to_yz_business_staff_table.php deleted file mode 100644 index 3cb97750..00000000 --- a/database/migrations/2021_09_17_191531_add_disabled_to_yz_business_staff_table.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('disabled')->default(0)->comment('是否禁用 0正常 1禁用'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_09_29_155727_create_yz_coupon_increase_records.php b/database/migrations/2021_09_29_155727_create_yz_coupon_increase_records.php deleted file mode 100644 index 26fd5b4e..00000000 --- a/database/migrations/2021_09_29_155727_create_yz_coupon_increase_records.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id')->unique(); - $table->integer('uniacid'); - $table->integer('count')->comment('每次新增的数量'); - $table->integer('coupon_id')->index()->comment('优惠券id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_coupon_increase_records comment '优惠券新增记录表'"); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_10_11_172957_fix_record_to_yz_member_income.php b/database/migrations/2021_10_11_172957_fix_record_to_yz_member_income.php deleted file mode 100644 index 16bb019c..00000000 --- a/database/migrations/2021_10_11_172957_fix_record_to_yz_member_income.php +++ /dev/null @@ -1,32 +0,0 @@ -where('type_name', '直播授权码')->update(['dividend_code' => 127, 'incometable_type' => 'Yunshop\Room\models\CodeUsed']); - DB::table('yz_member_income')->where('type_name', '抢团')->update(['dividend_code' => 86, 'incometable_type' => 'Yunshop\SnatchRegiment\widgets\WithdrawWidget']); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_10_13_132957_alter_yz_pay_type_name.php b/database/migrations/2021_10_13_132957_alter_yz_pay_type_name.php deleted file mode 100644 index 0b163eb8..00000000 --- a/database/migrations/2021_10_13_132957_alter_yz_pay_type_name.php +++ /dev/null @@ -1,31 +0,0 @@ -where('id', 55)->update(['name' =>'微信支付']); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_10_14_132124_alter_yz_pay_type_wechat_name.php b/database/migrations/2021_10_14_132124_alter_yz_pay_type_wechat_name.php deleted file mode 100644 index d0832213..00000000 --- a/database/migrations/2021_10_14_132124_alter_yz_pay_type_wechat_name.php +++ /dev/null @@ -1,31 +0,0 @@ -where('id', 55)->update(['name' =>'微信']); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_11_11_170839_truncate_failed_jobs_table.php b/database/migrations/2021_11_11_170839_truncate_failed_jobs_table.php deleted file mode 100644 index 0da50744..00000000 --- a/database/migrations/2021_11_11_170839_truncate_failed_jobs_table.php +++ /dev/null @@ -1,29 +0,0 @@ -truncate(); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_11_18_163928_add_day_buy_total_limit_to_yz_goods_privilege_table.php b/database/migrations/2021_11_18_163928_add_day_buy_total_limit_to_yz_goods_privilege_table.php deleted file mode 100644 index 4397c282..00000000 --- a/database/migrations/2021_11_18_163928_add_day_buy_total_limit_to_yz_goods_privilege_table.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('day_buy_total_limit')->default(0)->comment('商品每日限购总量'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2021_11_22_090147_create_yz_postage_included_category.php b/database/migrations/2021_11_22_090147_create_yz_postage_included_category.php deleted file mode 100644 index 01ce1fe1..00000000 --- a/database/migrations/2021_11_22_090147_create_yz_postage_included_category.php +++ /dev/null @@ -1,41 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('sort')->comment('排序'); - $table->string('name')->comment('分类名'); - $table->tinyInteger('is_display')->comment('是否展示'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_postage_included_category` comment '包邮分类表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_postage_included_category')) { - Schema::dropIfExists('yz_postage_included_category'); - } - } -} diff --git a/database/migrations/2021_11_22_090155_create_yz_postage_included_category_goods.php b/database/migrations/2021_11_22_090155_create_yz_postage_included_category_goods.php deleted file mode 100644 index 94e03039..00000000 --- a/database/migrations/2021_11_22_090155_create_yz_postage_included_category_goods.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('postage_included_category_id')->index('postage_included_category_id')->comment('包邮分类ID'); - $table->integer('goods_id')->index('goods_id')->comment('商品ID'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_postage_included_category_goods` comment '包邮分类商品关系表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_postage_included_category_goods')) { - Schema::dropIfExists('yz_postage_included_category_goods'); - } - } -} diff --git a/database/migrations/2021_11_23_165245_create_yz_variety_member_cart.php b/database/migrations/2021_11_23_165245_create_yz_variety_member_cart.php deleted file mode 100644 index 7cbd2f97..00000000 --- a/database/migrations/2021_11_23_165245_create_yz_variety_member_cart.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('member_cart_id')->index()->comment('会员购物车id'); - $table->string('member_cart_type')->comment('会员购物车类型'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_variety_member_cart` comment '会员购物车关系表(多态)'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_variety_member_cart')) { - Schema::dropIfExists('yz_variety_member_cart'); - } - } -} diff --git a/database/migrations/2021_11_26_163721_add_pay_reward_balance_to_ims_yz_goods_sale_shop.php b/database/migrations/2021_11_26_163721_add_pay_reward_balance_to_ims_yz_goods_sale_shop.php deleted file mode 100644 index 269b5ea8..00000000 --- a/database/migrations/2021_11_26_163721_add_pay_reward_balance_to_ims_yz_goods_sale_shop.php +++ /dev/null @@ -1,36 +0,0 @@ -string('pay_reward_balance')->default('')->nullable()->comment('支付奖励值'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('pay_reward_balance'); - }); - } -} diff --git a/database/migrations/2021_11_29_234612_create_yz_withdraw_rich_text.php b/database/migrations/2021_11_29_234612_create_yz_withdraw_rich_text.php deleted file mode 100644 index 470a8483..00000000 --- a/database/migrations/2021_11_29_234612_create_yz_withdraw_rich_text.php +++ /dev/null @@ -1,37 +0,0 @@ -increments('id')->unique(); - $table->integer('uniacid'); - $table->text('content')->nullable()->comment('内容'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - } - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_withdraw_rich_text comment '提现说明富文本'"); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2021_12_07_165245_create_yz_order_package.php b/database/migrations/2021_12_07_165245_create_yz_order_package.php deleted file mode 100644 index 9563ef2b..00000000 --- a/database/migrations/2021_12_07_165245_create_yz_order_package.php +++ /dev/null @@ -1,43 +0,0 @@ -integer('id', true); - $table->integer('uniacid'); - $table->integer('order_id')->comment('订单表id'); - $table->integer('order_goods_id')->comment('订单商品表id'); - $table->integer('total')->comment('数量'); - $table->integer('order_express_id')->comment('订单物流表id'); - $table->integer('created_at'); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - - $table->index(['order_id','order_goods_id'],'ids_Oid_OGid'); - $table->index('order_express_id','ids_OEid'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_order_package` comment '订单包裹表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2021_12_10_135615_create_yz_goods_spec_info_table.php b/database/migrations/2021_12_10_135615_create_yz_goods_spec_info_table.php deleted file mode 100644 index 2cb66d7e..00000000 --- a/database/migrations/2021_12_10_135615_create_yz_goods_spec_info_table.php +++ /dev/null @@ -1,45 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->integer('goods_id')->comment('商品ID'); - $table->string('info_img')->comment('图片'); - $table->text('content')->comment('内容'); - $table->integer('goods_option_id')->nullable()->comment('规格ID'); - $table->integer('sort')->default(0)->comment('排序'); - $table->integer('updated_at')->nullable(); - $table->integer('created_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_goods_spec_info` comment '商品--商品规格信息表'"); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_spec_info')) { - Schema::dropIfExists('yz_goods_spec_info'); - } - } -} diff --git a/database/migrations/2021_12_14_134402_update_yz_goods_category_table20211214.php b/database/migrations/2021_12_14_134402_update_yz_goods_category_table20211214.php deleted file mode 100644 index 70b38d81..00000000 --- a/database/migrations/2021_12_14_134402_update_yz_goods_category_table20211214.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('goods_option_id')->nullable()->comment('分类组关联商品规格ID'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_goods_category')) { - Schema::table('yz_goods_category', function (Blueprint $table) { - if (Schema::hasColumn('yz_goods_category', 'goods_option_id')) { - $table->dropColumn('goods_option_id'); - } - }); - } - } -} diff --git a/database/migrations/2021_12_22_134420_create_yz_order_merge_create_table.php b/database/migrations/2021_12_22_134420_create_yz_order_merge_create_table.php deleted file mode 100644 index 3d7c815e..00000000 --- a/database/migrations/2021_12_22_134420_create_yz_order_merge_create_table.php +++ /dev/null @@ -1,37 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->text('order_ids')->comment('一同创建的订单ID,逗号拼接'); - $table->integer('created_at'); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_order_merge_create` comment '订单合并创建表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_merge_create'); - } -} diff --git a/database/migrations/2021_12_22_174033_update_refactor_yz_order_refund_table.php b/database/migrations/2021_12_22_174033_update_refactor_yz_order_refund_table.php deleted file mode 100644 index 10b25254..00000000 --- a/database/migrations/2021_12_22_174033_update_refactor_yz_order_refund_table.php +++ /dev/null @@ -1,67 +0,0 @@ -tinyInteger('receive_status')->default(0)->comment('收货状态 0未收货 1已收货'); - } - if (!Schema::hasColumn('yz_order_refund', 'part_refund')) { - $table->tinyInteger('part_refund')->default(0)->comment('订单部分退款 0否 1是'); - } - - }); - } - - if (Schema::hasTable('yz_order_goods')) { - Schema::table('yz_order_goods', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_goods', 'is_refund')) { - $table->integer('is_refund')->default(0)->comment( '商品退款次数'); - } - - }); - } - - if (Schema::hasTable('yz_resend_express')) { - Schema::table('yz_resend_express', function (Blueprint $table) { - if (!Schema::hasColumn('yz_resend_express', 'pack_goods')) { - $table->text('pack_goods')->nullable()->comment( '发货商品数据冗余'); - } - }); - } - - if (Schema::hasTable('yz_return_express')) { - Schema::table('yz_return_express', function (Blueprint $table) { - if (!Schema::hasColumn('yz_return_express', 'images')) { - $table->text('images')->nullable()->comment( '图片,text类型为了以后多图'); - } - - if (!Schema::hasColumn('yz_return_express', 'way_id')) { - $table->string('way_id')->nullable()->comment( '退货方式唯一编号'); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2021_12_22_174137_create_yz_order_refund_goods_log_table.php b/database/migrations/2021_12_22_174137_create_yz_order_refund_goods_log_table.php deleted file mode 100644 index 5bc2d6fb..00000000 --- a/database/migrations/2021_12_22_174137_create_yz_order_refund_goods_log_table.php +++ /dev/null @@ -1,45 +0,0 @@ -increments('id'); - $table->integer('order_id')->index('order_idx')->comment('订单ID'); - $table->integer('refund_id')->index('refund_idx')->comment('退款ID'); - $table->integer('order_goods_id')->index('order_goods_idx')->comment('订单商品ID'); - $table->integer('send_num')->default(0)->comment('发货数量'); - $table->integer('refund_total')->default(0)->comment('退款商品数量'); - $table->decimal('refund_price',14,2)->default(0)->comment('退款商品金额'); - $table->tinyInteger('refund_type')->nullable()->comment('售后类型,用于过滤非退款售后'); - $table->tinyInteger('status')->default(0)->nullable()->comment('售后商品状态'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_refund_goods_log` comment'订单--已退款订单商品记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_refund_goods_log'); - } -} diff --git a/database/migrations/2021_12_22_174406_create_yz_order_refund_process_log_table.php b/database/migrations/2021_12_22_174406_create_yz_order_refund_process_log_table.php deleted file mode 100644 index aa19ef7a..00000000 --- a/database/migrations/2021_12_22_174406_create_yz_order_refund_process_log_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('order_id')->index('order_idx')->comment('订单ID'); - $table->integer('refund_id')->index('refund_idx')->comment('退款ID'); - $table->integer('operator')->default(0)->comment('操作员类型'); - $table->integer('operator_id')->default(0)->comment('操作员ID'); - $table->integer('operate_type')->nullable()->comment('操作类型'); - $table->text('detail')->nullable()->comment('详情描述'); - $table->text('remark')->nullable()->comment('备用字段'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_refund_process_log` comment'订单--售后协商记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_refund_process_log'); - } -} diff --git a/database/migrations/2021_12_27_150716_update_yz_member_level_table20211227.php b/database/migrations/2021_12_27_150716_update_yz_member_level_table20211227.php deleted file mode 100644 index ac78570b..00000000 --- a/database/migrations/2021_12_27_150716_update_yz_member_level_table20211227.php +++ /dev/null @@ -1,46 +0,0 @@ -decimal('give_integral', 12,2)->nullable()->comment('购买商品赠送消费积分比例'); - } - if (!Schema::hasColumn('yz_member_level', 'give_point_today')) { - $table->integer('give_point_today')->nullable()->comment('每天最高可获积分数量'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - if (Schema::hasTable('yz_member_level')) { - Schema::table('yz_member_level', function (Blueprint $table) { - if (Schema::hasColumn('yz_member_level', 'give_integral')) { - $table->dropColumn('give_integral'); - } - if (Schema::hasColumn('yz_member_level', 'give_point_today')) { - $table->dropColumn('give_point_today'); - } - }); - } - } -} diff --git a/database/migrations/2021_12_28_140844_create_yz_goods_setting_table.php b/database/migrations/2021_12_28_140844_create_yz_goods_setting_table.php deleted file mode 100644 index 4ea35e90..00000000 --- a/database/migrations/2021_12_28_140844_create_yz_goods_setting_table.php +++ /dev/null @@ -1,39 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->tinyInteger('is_month_sales')->default(0)->comment('月销售量开关:1-开启,0-关闭'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_goods_setting` comment '商品基础设置表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_setting'); - } -} diff --git a/database/migrations/2021_12_29_161030_update_yz_category_discount_table20211229.php b/database/migrations/2021_12_29_161030_update_yz_category_discount_table20211229.php deleted file mode 100644 index 29e04e28..00000000 --- a/database/migrations/2021_12_29_161030_update_yz_category_discount_table20211229.php +++ /dev/null @@ -1,34 +0,0 @@ -text('category_ids')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_01_05_160629_add_integral_exchange_column_to_yz_coupon.php b/database/migrations/2022_01_05_160629_add_integral_exchange_column_to_yz_coupon.php deleted file mode 100644 index b9d78ed7..00000000 --- a/database/migrations/2022_01_05_160629_add_integral_exchange_column_to_yz_coupon.php +++ /dev/null @@ -1,48 +0,0 @@ -tinyInteger('is_integral_exchange_coupon')->default(0)->comment('消费积分兑换优惠券:1-开启,0-关闭'); - } - if (!Schema::hasColumn('yz_coupon', 'exchange_coupon_integral')) { - $table->decimal('exchange_coupon_integral',10,2)->nullable()->comment('兑换优惠券需要消费积分'); - } - if (!Schema::hasColumn('yz_coupon', 'member_tags_names')) { - $table->text('member_tags_names',65535)->after('storenames')->nullable()->comment('会员标签名称'); - } - if (!Schema::hasColumn('yz_coupon', 'member_tags_ids')) { - $table->text('member_tags_ids',65535)->after('storenames')->nullable()->comment('会员标签id组'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_coupon', function (Blueprint $table) { - $table->dropColumn('is_integral_exchange_coupon'); - $table->dropColumn('exchange_coupon_integral'); - $table->dropColumn('member_tags_names'); - $table->dropColumn('member_tags_ids'); - }); - } -} diff --git a/database/migrations/2022_01_06_142853_create_yz_outside_app_setting_table.php b/database/migrations/2022_01_06_142853_create_yz_outside_app_setting_table.php deleted file mode 100644 index 6b0b93a5..00000000 --- a/database/migrations/2022_01_06_142853_create_yz_outside_app_setting_table.php +++ /dev/null @@ -1,44 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid')->index('uniacid_idx'); - $table->string('app_id')->nullable()->comment('应用AppID')->index('app_idx'); - $table->string('app_secret')->default('')->comment('应用secret'); - $table->text('black_list')->nullable()->comment('IP黑名单'); - $table->text('white_list')->nullable()->comment('IP白名单'); - $table->text('value')->nullable()->comment('其他设置'); - $table->tinyInteger('sign_required')->default(0)->comment('是否需要签名 0需要1不需要'); - $table->tinyInteger('is_open')->default(0)->comment('是否开启'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_outside_app_setting` comment '系统--对外应用设置表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_outside_app_setting'); - } -} diff --git a/database/migrations/2022_01_10_161502_create_yz_comment_config_table.php b/database/migrations/2022_01_10_161502_create_yz_comment_config_table.php deleted file mode 100644 index 88b44978..00000000 --- a/database/migrations/2022_01_10_161502_create_yz_comment_config_table.php +++ /dev/null @@ -1,44 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid')->default(0)->index('idx_uniacid'); - $table->tinyInteger('is_comment_audit')->default(0)->comment('评论审核:1-开启'); - $table->tinyInteger('is_default_good_reputation')->default(0)->comment('默认好评:1-开启'); - $table->tinyInteger('is_order_comment_entrance')->default(0)->comment('订单显示评论入口:1-开启'); - $table->tinyInteger('is_additional_comment')->default(0)->comment('追评:1-开启'); - $table->tinyInteger('is_score_latitude')->default(0)->comment('评分维度:1-开启'); - $table->char('top_sort')->default('asc')->comment('置顶排序:asc升序,desc倒序')->index('idx_top_sort'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_comment_config` comment '评论设置表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_comment_config'); - } -} diff --git a/database/migrations/2022_01_11_093249_add_audit_column_to_yz_comment_table.php b/database/migrations/2022_01_11_093249_add_audit_column_to_yz_comment_table.php deleted file mode 100644 index 667f8b62..00000000 --- a/database/migrations/2022_01_11_093249_add_audit_column_to_yz_comment_table.php +++ /dev/null @@ -1,56 +0,0 @@ -tinyInteger('is_show')->default(1)->comment('是否显示:1-显示')->index('idx_is_show'); - } - if (!Schema::hasColumn('yz_comment', 'is_top')) { - $table->tinyInteger('is_top')->default(0)->comment('是否置顶:1-置顶')->index('idx_is_top'); - } - if (!Schema::hasColumn('yz_comment', 'score_latitude')) { - $table->text('score_latitude',65535)->nullable()->comment('评分纬度'); - } - if (!Schema::hasColumn('yz_comment', 'audit_status')) { - $table->tinyInteger('audit_status')->default(0)->comment('审核状态:0-不需要审核,1-通过,-1 = 驳回,2-待审核')->index('idx_audit_status'); - } - if (!Schema::hasColumn('yz_comment', 'additional_comment_id')) { - $table->integer('additional_comment_id')->default(0)->comment('追评ID'); - } - if (!Schema::hasColumn('yz_comment', 'has_default_good_reputation')) { - $table->tinyInteger('has_default_good_reputation')->default(0)->comment('是否默认好评,1-是'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_sale', function (Blueprint $table) { - $table->dropColumn('is_show'); - $table->dropColumn('is_top'); - $table->dropColumn('score_latitude'); - $table->dropColumn('audit_status'); - $table->dropColumn('additional_comment_id'); - $table->dropColumn('has_default_good_reputation'); - }); - } -} diff --git a/database/migrations/2022_01_13_113320_add_is_member_enter_to_yz_goods_setting_table.php b/database/migrations/2022_01_13_113320_add_is_member_enter_to_yz_goods_setting_table.php deleted file mode 100644 index 19e4011b..00000000 --- a/database/migrations/2022_01_13_113320_add_is_member_enter_to_yz_goods_setting_table.php +++ /dev/null @@ -1,36 +0,0 @@ -tinyInteger('is_member_enter')->default(1)->comment('会员中心开关:1-开启,0-关闭'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_setting', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_01_13_160335_create_yz_outside_order_trade_table.php b/database/migrations/2022_01_13_160335_create_yz_outside_order_trade_table.php deleted file mode 100644 index 49d0c164..00000000 --- a/database/migrations/2022_01_13_160335_create_yz_outside_order_trade_table.php +++ /dev/null @@ -1,42 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid')->index('uniacid_idx'); - $table->text('order_ids')->nullable()->comment('商城订单id组'); - $table->string('outside_sn')->default('')->comment('第三方订单编号'); - $table->string('trade_sn')->default('')->comment('商城订单编号'); - $table->decimal('total_price',14,2)->default(0)->comment('订单实付金额'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_outside_order_trade` comment '第三方下单关系记录'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_outside_order_trade'); - } -} diff --git a/database/migrations/2022_01_13_174736_create_yz_outside_order_has_many_order_table.php b/database/migrations/2022_01_13_174736_create_yz_outside_order_has_many_order_table.php deleted file mode 100644 index d22e415b..00000000 --- a/database/migrations/2022_01_13_174736_create_yz_outside_order_has_many_order_table.php +++ /dev/null @@ -1,39 +0,0 @@ -bigIncrements('id'); - $table->integer('outside_order_id')->comment('外部订单记录id'); - $table->integer('order_id')->nullable()->comment('商城订单id'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_outside_order_has_many_order` comment '订单与第三方订单关系表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_outside_order_has_many_order'); - } -} diff --git a/database/migrations/2022_01_17_114543_add_lng_lat_to_order_address.php b/database/migrations/2022_01_17_114543_add_lng_lat_to_order_address.php deleted file mode 100644 index e31743c0..00000000 --- a/database/migrations/2022_01_17_114543_add_lng_lat_to_order_address.php +++ /dev/null @@ -1,40 +0,0 @@ -string('longitude', 15)->default('')->comment('经度'); - } - if (!Schema::hasColumn('yz_order_address', 'latitude')) { - $table->string('latitude', 15)->default('')->comment('纬度'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('order_address', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_01_26_223425_add_detail_show_to_yz_goods_setting_table.php b/database/migrations/2022_01_26_223425_add_detail_show_to_yz_goods_setting_table.php deleted file mode 100644 index 618f9421..00000000 --- a/database/migrations/2022_01_26_223425_add_detail_show_to_yz_goods_setting_table.php +++ /dev/null @@ -1,36 +0,0 @@ -tinyInteger('detail_show')->default(0)->comment('商品详情页-商品详情:1-默认显示,0-默认不显示'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_setting', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_01_27_112447_update_to_alias_yz_goods_table.php b/database/migrations/2022_01_27_112447_update_to_alias_yz_goods_table.php deleted file mode 100644 index a80133b1..00000000 --- a/database/migrations/2022_01_27_112447_update_to_alias_yz_goods_table.php +++ /dev/null @@ -1,36 +0,0 @@ -string('alias')->default('')->comment('商品别名'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods', function (Blueprint $table) { - $table->dropColumn('alias'); - }); - } -} diff --git a/database/migrations/2022_01_28_103653_add_index_to_yz_table.php b/database/migrations/2022_01_28_103653_add_index_to_yz_table.php deleted file mode 100644 index 0b1c34c6..00000000 --- a/database/migrations/2022_01_28_103653_add_index_to_yz_table.php +++ /dev/null @@ -1,80 +0,0 @@ -getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_options'); - $flag = true; - foreach ($all_index as $index) { - if (in_array('uniacid',$index->getColumns())) { - $flag = false; - } - } - //存在索引就不添加 - $flag && $table->index('uniacid','uniacid_index'); - } - }); - - Schema::table('yz_member_cart', function (Blueprint $table) { - if (Schema::hasColumn('yz_member_cart', 'uniacid') && Schema::hasColumn('yz_member_cart', 'goods_id')) { - $sm = Schema::getConnection()->getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_member_cart'); - $uniacid = true; - $goods_id = true; - foreach ($all_index as $index) { - if (in_array('uniacid',$index->getColumns())) { - $uniacid = false; - } - if (in_array('goods_id',$index->getColumns())) { - $goods_id = false; - } - } - //存在索引就不添加 - $uniacid && $table->index('uniacid','uniacid_index'); - $goods_id && $table->index('goods_id','goods_id_index'); - } - }); - - Schema::table('yz_goods_coupon', function (Blueprint $table) { - if (Schema::hasColumn('yz_goods_coupon', 'goods_id')) { - $sm = Schema::getConnection()->getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_goods_coupon'); - $goods_id = true; - foreach ($all_index as $index) { - if (in_array('goods_id',$index->getColumns())) { - $goods_id = false; - } - } - //存在索引就不添加 - $goods_id && $table->index('goods_id','goods_id_index'); - } - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_02_09_101617_add_price_desc_to_yz_goods_setting_table.php b/database/migrations/2022_02_09_101617_add_price_desc_to_yz_goods_setting_table.php deleted file mode 100644 index 6868f07e..00000000 --- a/database/migrations/2022_02_09_101617_add_price_desc_to_yz_goods_setting_table.php +++ /dev/null @@ -1,38 +0,0 @@ -tinyInteger('is_price_desc')->default(0)->comment('价格说明开关:1-开启,0-关闭'); - $table->string('title')->default('')->comment('自定义表题'); - $table->text('explain')->default('')->comment('说明内容'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_setting', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_02_09_140151_create_yz_system_white_list_table.php b/database/migrations/2022_02_09_140151_create_yz_system_white_list_table.php deleted file mode 100644 index 24ac9828..00000000 --- a/database/migrations/2022_02_09_140151_create_yz_system_white_list_table.php +++ /dev/null @@ -1,38 +0,0 @@ -bigIncrements('id'); - $table->string('ip')->comment('ip地址'); - $table->boolean('is_open')->default(0)->comment('是否启用:0否1启用'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_system_white_list` comment '独立后台登录白名单表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_system_white_list'); - } -} diff --git a/database/migrations/2022_02_14_145840_add_data_yz_order_invoice_table.php b/database/migrations/2022_02_14_145840_add_data_yz_order_invoice_table.php deleted file mode 100644 index b9d8d8df..00000000 --- a/database/migrations/2022_02_14_145840_add_data_yz_order_invoice_table.php +++ /dev/null @@ -1,72 +0,0 @@ -string('enterprise_id')->default('')->comment('企业唯一标识'); - $table->string('invoice_sn')->default('')->comment('发票请求流水号 (全局唯一)'); - $table->string('equipment_number')->default('')->comment('税控设备号'); - $table->integer('bill_type')->default(0)->comment('开票类型:0-蓝字发票;1-红字发票'); - $table->integer('special_type')->default(0)->comment('特殊票种:0-不是;1-农产品销售;2-农产品收购(收购票)'); - $table->integer('collection')->default(0)->comment('征收方式:0- 专普票;1-减按计增;2-差额征收'); - $table->integer('list_identification')->default(0)->comment('清单标识:0- 非清单;1- 清单'); - $table->string('xsf_name')->default('')->comment('销售方名称'); - $table->string('xsf_taxpayer')->default('')->comment('销售方纳税人识别号'); - $table->string('xsf_address')->default('')->comment('销售方地址'); - $table->string('xsf_mobile')->default('')->comment('销售方电话'); - $table->string('xsf_bank_admin')->default('')->comment('销售方银行账户'); - $table->string('gmf_taxpayer')->default('')->comment('购买方纳税人识别号'); - $table->string('gmf_address')->default('')->comment('注册地址'); - $table->string('gmf_bank')->default('')->comment('开户银行'); - $table->string('gmf_bank_admin')->default('')->comment('购买方银行账户'); - $table->string('gmf_mobile')->default('')->comment('注册电话'); - $table->string('content')->default('')->comment('发票内容'); - $table->string('drawer')->default('')->comment('开票人'); - $table->string('payee')->default('')->comment('收款人'); - $table->string('reviewer')->default('')->comment('复核人'); - $table->text('remarks')->default('')->comment('备注'); - $table->string('notice_no')->default('')->comment('通知单编号'); - $table->string('applicant')->default('')->comment('申请人'); - $table->integer('is_audit')->default(0)->comment('是否自动审核:0-非自动审核;1-自动审核'); - $table->text('detail_param')->default('')->comment('明细参数'); - $table->integer('tax_rate')->default(0)->comment('税率'); - $table->integer('zero_tax_rate')->default(0)->comment('零税率标识:0-正常税率;1-免税;2-不征税;3-普通零税率'); - $table->string('invoice_no')->default('')->comment('发票编号'); - $table->integer('invoice_nature')->default(0)->comment('发票行性质: 0-正常行;1-折扣行 (折扣票金额正);2-被折扣行\'(折扣票金额负)'); - $table->integer('status')->default(0)->comment('开票状态 0-未开票,1-开票成功,2-开票中'); - $table->integer('invoice_time')->default(0)->comment('开票时间'); - $table->string('invoice_image')->default('')->comment('发票图片地址'); - $table->integer('apply')->default(0)->comment('申请开票(0=未申请,1=已申请)'); - $table->string('col_address')->default('')->comment('收票地址'); - $table->string('col_name')->default('')->comment('收票人姓名'); - $table->string('col_mobile')->default('')->comment('收票人电话'); - - if (!Schema::hasColumns('yz_order_invoice', ['uid'])) { - $table->integer('uid')->default(0)->comment('uid'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_02_15_104008_create_yz_balance_recharge_check_table.php b/database/migrations/2022_02_15_104008_create_yz_balance_recharge_check_table.php deleted file mode 100644 index bf8705dd..00000000 --- a/database/migrations/2022_02_15_104008_create_yz_balance_recharge_check_table.php +++ /dev/null @@ -1,50 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->integer('member_id')->comment('会员ID'); - $table->decimal('money',12,2)->comment('充值余额'); - $table->integer('type')->comment('充值类型'); - $table->integer('operator_id')->nullable()->comment('操作者ID'); - $table->integer('operator')->nullable()->comment('操作者'); - $table->integer('source')->comment('来源'); - $table->string('enclosure')->nullable()->comment('附件'); - $table->string('recharge_remark')->nullable()->comment('充值时填写的备注'); - $table->string('remark')->nullable()->comment('备注'); - $table->string('explain')->nullable()->comment('说明'); - $table->tinyInteger('status')->default(0)->comment('状态:0待审核,1通过,2驳回'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - - $table->index('uniacid'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_balance_recharge_check` comment '余额充值审核表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_balance_recharge_check'); - } -} diff --git a/database/migrations/2022_02_15_140151_create_yz_business_material_table .php b/database/migrations/2022_02_15_140151_create_yz_business_material_table .php deleted file mode 100644 index ce276e99..00000000 --- a/database/migrations/2022_02_15_140151_create_yz_business_material_table .php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id',true); - $table->integer('uniacid'); - $table->integer('business_id'); - $table->string('type',10)->comment('附件类型'); - $table->string('file_name',50)->comment('附件名称'); - $table->string('file_url')->comment('附件完整地址'); - $table->string('media_id')->comment('企业微信回传的素材标识(三天有效)'); - $table->integer('updated_at'); - - $table->index(['uniacid','business_id'],'ids_Uni_BniId'); - $table->index(['type','file_name'],'ids_Type_FName'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_business_material` comment '企业微信素材标识管理表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_02_22_173712_add_root_username_to_yz_website_info_table.php b/database/migrations/2022_02_22_173712_add_root_username_to_yz_website_info_table.php deleted file mode 100644 index 74c88aeb..00000000 --- a/database/migrations/2022_02_22_173712_add_root_username_to_yz_website_info_table.php +++ /dev/null @@ -1,33 +0,0 @@ -string('root_username')->default('')->comment('服务器账号'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_03_02_163214_add_order_goods_id_to_yz_comment.php b/database/migrations/2022_03_02_163214_add_order_goods_id_to_yz_comment.php deleted file mode 100644 index 450a6a6a..00000000 --- a/database/migrations/2022_03_02_163214_add_order_goods_id_to_yz_comment.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('order_goods_id')->default(0)->comment('订单商品表ID')->index('idx_order_goods_id'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_comment', function (Blueprint $table) { - $table->dropColumn('order_goods_id'); - }); - } -} diff --git a/database/migrations/2022_03_09_134310_add_clerk_id_and_clerk_type_to_yz_order_change_log_table.php b/database/migrations/2022_03_09_134310_add_clerk_id_and_clerk_type_to_yz_order_change_log_table.php deleted file mode 100644 index 561f05fd..00000000 --- a/database/migrations/2022_03_09_134310_add_clerk_id_and_clerk_type_to_yz_order_change_log_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('clerk_type')->default('')->comment('核销员来源'); - } - if (!Schema::hasColumn('yz_order_change_log', 'clerk_id')) { - $table->integer('clerk_id')->default(0)->comment('核销员ID'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_03_09_141528_add_min_balance_deduct_to_yz_goods_sale_table.php b/database/migrations/2022_03_09_141528_add_min_balance_deduct_to_yz_goods_sale_table.php deleted file mode 100644 index aaa2c0d6..00000000 --- a/database/migrations/2022_03_09_141528_add_min_balance_deduct_to_yz_goods_sale_table.php +++ /dev/null @@ -1,42 +0,0 @@ -string('min_balance_deduct',10)->nullable()->comment('余额最低抵扣'); - } - - if (Schema::hasColumn('yz_goods_sale','max_balance_deduct')) { - $table->string('max_balance_deduct',10)->nullable()->change()->comment('余额最低抵扣'); - } - }); - - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_sale', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_03_10_164411_create_yz_sql_install_log_table.php b/database/migrations/2022_03_10_164411_create_yz_sql_install_log_table.php deleted file mode 100644 index 45eedc4e..00000000 --- a/database/migrations/2022_03_10_164411_create_yz_sql_install_log_table.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('id',true); - $table->string('path')->comment('安装绝对路径'); - $table->integer('created_at'); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_sql_install_log` comment '数据库安装记录'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_03_17_134310_add_wechat_micro_pay_to_yz_pay_type_table.php.php b/database/migrations/2022_03_17_134310_add_wechat_micro_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index c54060e5..00000000 --- a/database/migrations/2022_03_17_134310_add_wechat_micro_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,42 +0,0 @@ - 73, - 'name' => '微信支付(付款码)', - 'plugin_id' => 0, - 'code' => 'wechatMicroPay', - 'type' => 2, - 'unit' => '元', - 'group_id' => 1, - 'setting_key' => 'shop.pay.weixin', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_03_18_164411_add_is_front_show_to_yz_search_filtering_table.php b/database/migrations/2022_03_18_164411_add_is_front_show_to_yz_search_filtering_table.php deleted file mode 100644 index 5998c960..00000000 --- a/database/migrations/2022_03_18_164411_add_is_front_show_to_yz_search_filtering_table.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('is_front_show')->default(1)->comment('前端是否显示'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_03_18_223049_add_vip_order_goods_price_to_yz_order.php b/database/migrations/2022_03_18_223049_add_vip_order_goods_price_to_yz_order.php deleted file mode 100644 index 03ac668f..00000000 --- a/database/migrations/2022_03_18_223049_add_vip_order_goods_price_to_yz_order.php +++ /dev/null @@ -1,36 +0,0 @@ -decimal('vip_order_goods_price',14,2)->nullable()->comment('会员价金额'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order', function (Blueprint $table) { - $table->dropColumn('vip_order_goods_price'); - }); - } -} diff --git a/database/migrations/2022_03_23_155215_add_level_set_to_yz_comment.php b/database/migrations/2022_03_23_155215_add_level_set_to_yz_comment.php deleted file mode 100644 index 26c4eaa1..00000000 --- a/database/migrations/2022_03_23_155215_add_level_set_to_yz_comment.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('level_set')->default(0)->comment('手动设置等级'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_comment', function (Blueprint $table) { - $table->dropColumn('level_set'); - }); - } -} diff --git a/database/migrations/2022_03_31_143433_add_field_to_yz_order_refund_table.php b/database/migrations/2022_03_31_143433_add_field_to_yz_order_refund_table.php deleted file mode 100644 index 07e46df2..00000000 --- a/database/migrations/2022_03_31_143433_add_field_to_yz_order_refund_table.php +++ /dev/null @@ -1,53 +0,0 @@ -decimal('freight_price',10,2)->default(0.00)->nullable()->comment('运费金额'); - } - - if (!Schema::hasColumn('yz_order_refund', 'other_price')) { - $table->decimal('other_price',10,2)->default(0.00)->nullable()->comment('其他费用金额'); - } - }); - - } - - if (\Schema::hasTable('yz_order_refund_change_log')) { - Schema::table('yz_order_refund_change_log', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_refund_change_log', 'change_freight_price')) { - $table->decimal('change_freight_price',10,2)->default(0.00)->nullable()->comment('修改运费金额'); - } - - if (!Schema::hasColumn('yz_order_refund_change_log', 'change_other_price')) { - $table->decimal('change_other_price',10,2)->default(0.00)->nullable()->comment('修改其他费用金额'); - } - }); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_04_13_423142_alter_mc_member_charset_table.php b/database/migrations/2022_04_13_423142_alter_mc_member_charset_table.php deleted file mode 100644 index 320af845..00000000 --- a/database/migrations/2022_04_13_423142_alter_mc_member_charset_table.php +++ /dev/null @@ -1,32 +0,0 @@ -getTablePrefix() . "mc_members` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_04_14_185914_create_yz_order_freight_deduction_table.php b/database/migrations/2022_04_14_185914_create_yz_order_freight_deduction_table.php deleted file mode 100644 index 43248c71..00000000 --- a/database/migrations/2022_04_14_185914_create_yz_order_freight_deduction_table.php +++ /dev/null @@ -1,52 +0,0 @@ -increments('id'); - $table->integer('order_id')->nullable()->comment('订单ID')->index('order_idx'); - $table->string('name', 150)->nullable()->comment('抵扣名称'); - $table->string('code',50)->comment('抵扣标识'); - $table->decimal('amount',14,2)->default(0.00)->comment('抵扣金额'); - $table->decimal('coin',14,2)->default(0.00)->comment('抵扣数量'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_order_freight_deduction` comment'订单--订单运费抵扣'");//表注释 - - } - - if (Schema::hasTable('yz_order')) { - Schema::table('yz_order', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order', 'initial_freight')) { - $table->decimal('initial_freight',10,2)->default(0.00)->nullable()->comment('订单初始运费金额'); - } - }); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_freight_deduction'); - } -} diff --git a/database/migrations/2022_04_20_155411_add_field_to_yz_coupon_table.php b/database/migrations/2022_04_20_155411_add_field_to_yz_coupon_table.php deleted file mode 100644 index 07a60b69..00000000 --- a/database/migrations/2022_04_20_155411_add_field_to_yz_coupon_table.php +++ /dev/null @@ -1,34 +0,0 @@ -longText('content')->nullable()->comment('说明内容'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_04_22_134310_add_wechat_trade_pay_to_yz_pay_type_table.php.php b/database/migrations/2022_04_22_134310_add_wechat_trade_pay_to_yz_pay_type_table.php.php deleted file mode 100644 index a98cc5a5..00000000 --- a/database/migrations/2022_04_22_134310_add_wechat_trade_pay_to_yz_pay_type_table.php.php +++ /dev/null @@ -1,42 +0,0 @@ - 92, - 'name' => '微信支付(视频号)', - 'plugin_id' => 0, - 'code' => 'wechatTradePay', - 'type' => 2, - 'unit' => '元', - 'group_id' => 1, - 'setting_key' => '', - 'created_at' => time(), - 'updated_at' => time(), - ]); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_05_20_155905_create_yz_order_manual_refund_log_table.php b/database/migrations/2022_05_20_155905_create_yz_order_manual_refund_log_table.php deleted file mode 100644 index 2993d198..00000000 --- a/database/migrations/2022_05_20_155905_create_yz_order_manual_refund_log_table.php +++ /dev/null @@ -1,39 +0,0 @@ -bigIncrements('id'); - $table->integer('order_id')->comment('订单ID')->index('order_idx'); - $table->integer('operator_id')->nullable()->comment('操作员ID'); - $table->integer('operator')->default(0)->nullable()->comment('操作员类型'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix()."yz_order_manual_refund_log comment '订单--退款并关闭记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_manual_refund_log'); - } -} diff --git a/database/migrations/2022_05_30_091645_create_yz_wechat_withdraw_log_table.php b/database/migrations/2022_05_30_091645_create_yz_wechat_withdraw_log_table.php deleted file mode 100644 index ad76f5cb..00000000 --- a/database/migrations/2022_05_30_091645_create_yz_wechat_withdraw_log_table.php +++ /dev/null @@ -1,51 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid')->comment('平台ID')->index('idx_uniacid'); - $table->string('withdraw_sn')->comment('提现单号'); - $table->string('out_batch_no')->comment('商家批次单号'); - $table->string('out_detail_no')->comment('商家明细单号|提现订单号'); - $table->string('batch_id')->nullable()->comment('微信批次单号'); - $table->string('batch_status')->nullable()->comment('微信批次状态:状态值看微信文档'); - $table->string('detail_id')->nullable()->comment('微信明细单号'); - $table->string('detail_status')->nullable()->comment('明细状态:状态值看微信文档'); - $table->string('http_code')->nullable()->comment('请求状态码'); - $table->string('fail_code')->nullable()->comment('错误码,需要用于判断是否用原先的单号重试'); - $table->string('fail_msg')->nullable()->comment('错误信息'); - $table->tinyInteger('status')->default(0)->comment('状态:-2失败关闭不再操作,0未发送提现,1提现处理中,2提现完成不再操作'); - $table->tinyInteger('type')->default(0)->comment('类型:0商城提现,1供应商提现'); - $table->tinyInteger('pay_type')->comment('配置类型:1公众号,2小程序,3app'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() - . "yz_wechat_withdraw_log` comment '系统--微信提现记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_wechat_withdraw_log'); - } -} diff --git a/database/migrations/2022_06_01_163343_fix_order_goods_coupon.php b/database/migrations/2022_06_01_163343_fix_order_goods_coupon.php deleted file mode 100644 index 449d5c51..00000000 --- a/database/migrations/2022_06_01_163343_fix_order_goods_coupon.php +++ /dev/null @@ -1,41 +0,0 @@ - \app\common\models\coupon\OrderGoodsCoupon::MONTH_TYPE, 'status' => 1]) - ->get(); - foreach ($records as $record) { - if ($record->send_num > $record->end_send_num) { - $end = $record->end_send_num + 1; - $record->end_send_num = $end; - if ($end < $record->send_num) { - $record->status = 0; - } - $record->save(); - } - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_06_16_175306_add_name_to_yz_dispatch_type_set.php b/database/migrations/2022_06_16_175306_add_name_to_yz_dispatch_type_set.php deleted file mode 100644 index 7ccc2c75..00000000 --- a/database/migrations/2022_06_16_175306_add_name_to_yz_dispatch_type_set.php +++ /dev/null @@ -1,37 +0,0 @@ -string('name')->nullable()->comment('配送名称'); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_dispatch_type_set', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_06_29_095714_add_filed_yz_protocol_table20220629.php b/database/migrations/2022_06_29_095714_add_filed_yz_protocol_table20220629.php deleted file mode 100644 index 09baddf4..00000000 --- a/database/migrations/2022_06_29_095714_add_filed_yz_protocol_table20220629.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('default_tick')->default(0)->comment('注册协议默认勾选:1是0否'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_06_29_152002_transfer_member_set_data20220629.php b/database/migrations/2022_06_29_152002_transfer_member_set_data20220629.php deleted file mode 100644 index 81c036dd..00000000 --- a/database/migrations/2022_06_29_152002_transfer_member_set_data20220629.php +++ /dev/null @@ -1,28 +0,0 @@ -boolean('is_hide')->default(1)->comment('是否隐藏:1显示,2隐藏'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_07_07_091122_transfer_data_member_setting.php b/database/migrations/2022_07_07_091122_transfer_data_member_setting.php deleted file mode 100644 index 9a068699..00000000 --- a/database/migrations/2022_07_07_091122_transfer_data_member_setting.php +++ /dev/null @@ -1,72 +0,0 @@ -uniacid = $u->uniacid; - Setting::$uniqueAccountId = $u->uniacid; - //登录方式设置初始化 - $registerSet = Setting::get('shop.register'); - $memberSet = Setting::get('shop.member'); - if (isset($registerSet['login_mode'])) {//设置过这个 - continue; - } - $registerSet['login_mode'] = $memberSet['mobile_login_code'] ? ['mobile_code'] : ['password']; - Setting::set('shop.register',$registerSet); - if (Cache::has('shop_register')) { - Cache::forget('shop_register'); - } - - //强制绑定手机页面配置 - $bind_mobile_page = []; - if ($memberSet['is_bind_mobile'] == "2") { - $bind_mobile_page = ['member_center']; - } elseif ($memberSet['is_bind_mobile'] == 3) { - $memberSet['is_bind_mobile'] = "2"; - $bind_mobile_page = ['goods_detail']; - } elseif ($memberSet['is_bind_mobile'] == 4) { - $memberSet['is_bind_mobile'] = "2"; - $bind_mobile_page = ['promotion_center']; - } - $memberSet['bind_mobile_page'] = $bind_mobile_page; - $memberSet['is_custom_register'] = "1"; - $memberSet['form_id_register'] = "1"; - if (Cache::has('shop_member')) { - Cache::forget('shop_member'); - } - Setting::set('shop.member', $memberSet); - - //会员资料设置初始化 - $formSet = json_decode(Setting::get('shop.form'),true); - $formSet['base']['basic_register'] = "1"; - $formSet['base']['form_register'] = "1"; - Setting::set('shop.form', json_encode($formSet)); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_07_07_172043_change_data_to_yz_logistics_set_table.php b/database/migrations/2022_07_07_172043_change_data_to_yz_logistics_set_table.php deleted file mode 100644 index fb935bad..00000000 --- a/database/migrations/2022_07_07_172043_change_data_to_yz_logistics_set_table.php +++ /dev/null @@ -1,35 +0,0 @@ -text('data')->nullable()->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_07_11_181103_add_field_yz_withdraw_table20220711.php b/database/migrations/2022_07_11_181103_add_field_yz_withdraw_table20220711.php deleted file mode 100644 index 8cc6d5bb..00000000 --- a/database/migrations/2022_07_11_181103_add_field_yz_withdraw_table20220711.php +++ /dev/null @@ -1,34 +0,0 @@ -string('reject_reason')->nullable()->comment('驳回原因'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_07_13_184231_change_point_mode_in_yz_point_log.php b/database/migrations/2022_07_13_184231_change_point_mode_in_yz_point_log.php deleted file mode 100644 index fa29c60a..00000000 --- a/database/migrations/2022_07_13_184231_change_point_mode_in_yz_point_log.php +++ /dev/null @@ -1,36 +0,0 @@ -integer('point_mode')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_point_log', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_07_20_145210_add_reject_time_to_yz_order_refund.php b/database/migrations/2022_07_20_145210_add_reject_time_to_yz_order_refund.php deleted file mode 100644 index f5328b0d..00000000 --- a/database/migrations/2022_07_20_145210_add_reject_time_to_yz_order_refund.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('reject_time')->nullable()->comment('驳回时间'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_07_26_100439_add_filed_yz_goods_table20220726.php b/database/migrations/2022_07_26_100439_add_filed_yz_goods_table20220726.php deleted file mode 100644 index 3e48ea54..00000000 --- a/database/migrations/2022_07_26_100439_add_filed_yz_goods_table20220726.php +++ /dev/null @@ -1,50 +0,0 @@ -decimal('min_price', 10,2)->nullable()->comment('最低价(开启规格即规格最低)'); - } - if (!Schema::hasColumn('yz_goods', 'max_price')) { - $table->decimal('max_price', 10,2)->nullable()->comment('最高价(开启规格即规格最高)'); - } - }); - - $uniAccount = \app\common\models\UniAccount::getEnable() ?: []; - foreach ($uniAccount as $u) { - \app\common\facades\Setting::$uniqueAccountId = $u->uniacid; - \YunShop::app()->uniacid = $u->uniacid; - \app\common\models\Goods::uniacid()->select('id') - ->chunk('3000',function ($goods) use ($u) { - $ids = $goods->pluck('id')->all(); - if ($ids) { - dispatch(new \app\Jobs\SetGoodsPriceJob($ids,$u->uniacid)); - } - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_08_04_094716_create_yz_business_message_notice_table.php b/database/migrations/2022_08_04_094716_create_yz_business_message_notice_table.php deleted file mode 100644 index f4061f0f..00000000 --- a/database/migrations/2022_08_04_094716_create_yz_business_message_notice_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uniacid')->nullable(); - $table->integer('business_id')->nullable()->comment('企业ID')->index('business_idx'); - $table->integer('recipient_id')->comment('消息接收人员工ID')->index('recipient_idx'); - $table->integer('operate_id')->default(0)->comment('发起消息员工ID'); - $table->string('plugin',150)->default('')->comment('唯一服务容器标识,消息所属应用'); - $table->string('notice_type',150)->default('')->comment('消息通知类型'); - $table->longText('param')->nullable()->comment('消息参数保存,json格式保存'); - $table->text('html')->nullable()->comment('给需要保存大数据的消息'); - $table->tinyInteger('handle_status')->default(0)->comment('状态:0已处理1待处理'); - $table->tinyInteger('status')->default(0)->comment('状态:0未读1已读'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_business_message_notice` comment '企业PC端--企业消息通知'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_business_message_notice'); - } -} diff --git a/database/migrations/2022_08_08_143433_add_parent_point_to_yz_goods_sale_table.php b/database/migrations/2022_08_08_143433_add_parent_point_to_yz_goods_sale_table.php deleted file mode 100644 index ce7cb9a8..00000000 --- a/database/migrations/2022_08_08_143433_add_parent_point_to_yz_goods_sale_table.php +++ /dev/null @@ -1,39 +0,0 @@ -string('first_parent_point')->nullable()->comment('一级上级赠送积分'); - } - if (!Schema::hasColumn('yz_goods_sale', 'second_parent_point')) { - $table->string('second_parent_point')->nullable()->comment('二级上级赠送积分'); - } - }); - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_08_09_164411_create_yz_parent_point_reward_log_table.php b/database/migrations/2022_08_09_164411_create_yz_parent_point_reward_log_table.php deleted file mode 100644 index 11694812..00000000 --- a/database/migrations/2022_08_09_164411_create_yz_parent_point_reward_log_table.php +++ /dev/null @@ -1,44 +0,0 @@ -integer('id', true); - $table->integer('uniacid')->comment('公众号ID'); - $table->integer('uid')->comment('会员ID'); - $table->integer('order_id')->comment('订单ID'); - $table->integer('order_goods_id')->comment('订单商品ID'); - $table->decimal('point', 14, 2)->comment('赠送积分'); - $table->integer('expect_reward_time')->nullable()->comment('预计奖励时间'); - $table->integer('actual_reward_time')->nullable()->comment('实际奖励时间'); - $table->tinyInteger('status')->comment('0待发放 1已发放 -1已失效'); - $table->tinyInteger('level')->comment('x级上级'); - $table->integer('created_at'); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_parent_point_reward_log` comment '上级积分赠送记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_08_11_113800_create_ims_yz_plugins_meal.php b/database/migrations/2022_08_11_113800_create_ims_yz_plugins_meal.php deleted file mode 100644 index cd72f7f9..00000000 --- a/database/migrations/2022_08_11_113800_create_ims_yz_plugins_meal.php +++ /dev/null @@ -1,39 +0,0 @@ -integer('id', true); - $table->integer('order_by')->comment('排序,数值越大排序越靠前'); - $table->string('name',255)->comment('套餐名称'); - $table->text('plugins')->comment('插件集合'); - $table->integer('state')->comment('是否显示'); - $table->integer('created_at'); - $table->integer('updated_at'); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_plugins_meal` comment '插件套餐表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_plugins_meal'); - } -} diff --git a/database/migrations/2022_08_11_114520_create_ims_yz_plugins_meal_platform.php b/database/migrations/2022_08_11_114520_create_ims_yz_plugins_meal_platform.php deleted file mode 100644 index 3b9df829..00000000 --- a/database/migrations/2022_08_11_114520_create_ims_yz_plugins_meal_platform.php +++ /dev/null @@ -1,37 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->integer('plugins_meal_id'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_plugins_meal_platform` comment '插件套餐使用记录表'"); - } - } - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_plugins_meal_platform'); - } -} diff --git a/database/migrations/2022_08_24_170255_create_yz_min_app_pay_manage_order_table.php b/database/migrations/2022_08_24_170255_create_yz_min_app_pay_manage_order_table.php deleted file mode 100644 index d530d218..00000000 --- a/database/migrations/2022_08_24_170255_create_yz_min_app_pay_manage_order_table.php +++ /dev/null @@ -1,48 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->string('trade_no', 100)->comment('商家交易单号')->index('trade_nox'); - $table->string('openid')->nullable()->comment('该交易用户的openid'); - $table->string('transaction_id')->nullable()->comment('支付单号'); - $table->string('divide_no')->nullable()->comment('商家分账单号(唯一)'); - $table->string('error_msg')->nullable()->comment('接口返回错误信息'); - $table->text('notice_params')->nullable()->comment('异步回调通知参数'); - $table->text('mark')->nullable()->comment('请求接口备注'); - $table->tinyInteger('status')->default(0)->comment('状态:0未支付1已支付2已分账'); - $table->integer('pay_time')->nullable(); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `".app('db')->getTablePrefix()."yz_min_app_pay_manage_order` comment'系统--小程序支付管理订单'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_min_app_pay_manage_order'); - } -} diff --git a/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20220826.php b/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20220826.php deleted file mode 100644 index b0f158ae..00000000 --- a/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20220826.php +++ /dev/null @@ -1,34 +0,0 @@ -tinyInteger('scribing_show')->default(0)->comment('原价划线显示:0显示划线1不显示划线'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20230625.php b/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20230625.php deleted file mode 100644 index d9152b78..00000000 --- a/database/migrations/2022_08_26_093653_add_filed_yz_goods_setting_table20230625.php +++ /dev/null @@ -1,37 +0,0 @@ -tinyInteger('scribing_show')->default(0)->comment('原价划线显示:0显示划线1不显示划线'); - } - if (!Schema::hasColumn('yz_goods_setting', 'is_show_min_share')) { - $table->tinyInteger('is_show_min_share')->default(0)->comment('商品详情页-显示分享链接'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_08_30_170255_create_yz_business_staff_ticket_table.php b/database/migrations/2022_08_30_170255_create_yz_business_staff_ticket_table.php deleted file mode 100644 index 1b8c28bf..00000000 --- a/database/migrations/2022_08_30_170255_create_yz_business_staff_ticket_table.php +++ /dev/null @@ -1,44 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->integer('business_id')->comment('企业ID'); - $table->string('crop_id')->comment('微信企业ID'); - $table->string('agent_id')->comment('自建应用ID'); - $table->string('user_id')->comment('企业微信userid'); - $table->string('ticket')->comment('隐私授权ticket'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_business_staff_ticket` comment'企业管理--员工隐私信息ticket表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_business_staff_ticket'); - } -} diff --git a/database/migrations/2022_08_30_170256_create_yz_business_staff_ticket_code_table.php b/database/migrations/2022_08_30_170256_create_yz_business_staff_ticket_code_table.php deleted file mode 100644 index 3d540849..00000000 --- a/database/migrations/2022_08_30_170256_create_yz_business_staff_ticket_code_table.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->integer('business_id')->comment('企业ID'); - $table->string('ticket_url')->comment('ticket链接'); - $table->string('code_path')->comment('二维码路径'); - $table->string('code_url')->comment('二维码链接'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_business_staff_ticket_code` comment'企业管理--员工隐私授权二维码表'");//表注释 - - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_business_staff_ticket_code'); - } -} diff --git a/database/migrations/2022_08_31_161107_create_yz_order_tax_fee_table.php b/database/migrations/2022_08_31_161107_create_yz_order_tax_fee_table.php deleted file mode 100644 index 0c64c87d..00000000 --- a/database/migrations/2022_08_31_161107_create_yz_order_tax_fee_table.php +++ /dev/null @@ -1,42 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->integer('order_id')->comment('订单id'); - $table->integer('uid'); - $table->decimal('amount',11,2)->comment('税费金额,负数优惠,正数加钱'); - $table->string('fee_code')->comment('税费码'); - $table->string('name')->comment('税费名'); - $table->float('rate')->nullable()->comment('比例'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_order_tax_fee` comment '订单税费记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_tax_fee'); - } -} diff --git a/database/migrations/2022_08_31_162233_create_yz_order_goods_tax_fee_table.php b/database/migrations/2022_08_31_162233_create_yz_order_goods_tax_fee_table.php deleted file mode 100644 index 6b0c5267..00000000 --- a/database/migrations/2022_08_31_162233_create_yz_order_goods_tax_fee_table.php +++ /dev/null @@ -1,41 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid'); - $table->integer('order_goods_id')->comment('订单商品id'); - $table->integer('uid'); - $table->decimal('amount',11,2)->comment('税费金额,负数优惠,正数加钱'); - $table->string('fee_code')->comment('税费码'); - $table->string('name')->comment('税费名'); - $table->integer('created_at')->default(0); - $table->integer('updated_at')->default(0); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_order_goods_tax_fee` comment '订单商品税费记录表'"); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_order_goods_tax_fee'); - } -} diff --git a/database/migrations/2022_08_31_172651_add_filed_yz_order_table20220831.php b/database/migrations/2022_08_31_172651_add_filed_yz_order_table20220831.php deleted file mode 100644 index f6810bc1..00000000 --- a/database/migrations/2022_08_31_172651_add_filed_yz_order_table20220831.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('tax_fee',11,2)->default(0)->comment('税费优惠,负数优惠,正数加钱'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_09_02_103106_allter_yz_balance.php b/database/migrations/2022_09_02_103106_allter_yz_balance.php deleted file mode 100644 index 534497ea..00000000 --- a/database/migrations/2022_09_02_103106_allter_yz_balance.php +++ /dev/null @@ -1,32 +0,0 @@ -index(['member_id', 'uniacid'], "idx_member_id_uniacid"); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_balance', function (Blueprint $table) { - $table->dropIndex('idx_member_id_uniacid'); - }); - } -} diff --git a/database/migrations/2022_09_05_111158_update_table_ims_yz_member_level_update_column_goods_id.php b/database/migrations/2022_09_05_111158_update_table_ims_yz_member_level_update_column_goods_id.php deleted file mode 100644 index 86740e6d..00000000 --- a/database/migrations/2022_09_05_111158_update_table_ims_yz_member_level_update_column_goods_id.php +++ /dev/null @@ -1,38 +0,0 @@ -string('goods_id',2000)->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_member_level', function (Blueprint $table) { - if (Schema::hasColumn('yz_member_level', 'goods_id')) { - $table->string('goods_id',255)->change(); - } - }); - } -} diff --git a/database/migrations/2022_09_15_110400_add_uid_to_yz_order_deliver.php b/database/migrations/2022_09_15_110400_add_uid_to_yz_order_deliver.php deleted file mode 100644 index 2ef4cd95..00000000 --- a/database/migrations/2022_09_15_110400_add_uid_to_yz_order_deliver.php +++ /dev/null @@ -1,36 +0,0 @@ -integer("uid")->after("order_id")->comment("用户id"); - $table->index("uid", "idx_uid"); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_order_deliver', function (Blueprint $table) { - // - $table->dropIndex("idx_uid"); - $table->dropColumn("uid"); - }); - } -} diff --git a/database/migrations/2022_09_20_182511_create_yz_member_merge_table.php b/database/migrations/2022_09_20_182511_create_yz_member_merge_table.php deleted file mode 100644 index ec8cf1d3..00000000 --- a/database/migrations/2022_09_20_182511_create_yz_member_merge_table.php +++ /dev/null @@ -1,51 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->integer('before_uid')->nullable()->comment('合并前uid'); - $table->string('after_uid')->nullable()->comment('合并后uid'); - $table->string('before_amount')->nullable()->comment('合并前余额'); - $table->string('after_amount')->nullable()->comment('合并后余额'); - $table->string('before_point')->nullable()->comment('合并前积分'); - $table->string('after_point')->nullable()->comment('合并后积分'); - $table->string('before_love_usable')->nullable()->comment('合并前可用爱心值'); - $table->string('after_love_usable')->nullable()->comment('合并后可用爱心值'); - $table->string('before_love_froze')->nullable()->comment('合并前冻结爱心值'); - $table->string('after_love_froze')->nullable()->comment('合并后冻结爱心值'); - $table->string('before_mobile')->nullable()->comment('合并前手机号'); - $table->string('after_mobile')->nullable()->comment('合并后手机号'); - $table->text('set_content')->nullable()->comment('设置内容'); - $table->tinyInteger('merge_type')->nullable()->comment('合并类型1绑定手机合并2点击合并3自动合并'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_member_merge` comment'会员--合并记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_merge'); - } -} diff --git a/database/migrations/2022_10_09_110400_update_unique_index_to_yz_member_unique.php b/database/migrations/2022_10_09_110400_update_unique_index_to_yz_member_unique.php deleted file mode 100644 index 4d2d6ce8..00000000 --- a/database/migrations/2022_10_09_110400_update_unique_index_to_yz_member_unique.php +++ /dev/null @@ -1,54 +0,0 @@ -getDoctrineSchemaManager(); - $preFix = Schema::getConnection()->getTablePrefix(); - $indexesFound = $sm->listTableIndexes($preFix . 'yz_member_unique'); - if ($indexesFound) { - foreach ($indexesFound as $k=>$v) { - if ($v->getColumns() && count($v->getColumns()) == 1 && $v->getColumns()[0] === 'unionid') { - $table->dropIndex($k); - if (!array_key_exists("uniacid_unionid_unique", $indexesFound)) { - $table->unique(['uniacid', 'unionid'], 'uniacid_unionid_unique'); - } - } - } - } - }); -// Schema::table('yz_member_unique', function (Blueprint $table) { -// $sm = Schema::getConnection()->getDoctrineSchemaManager(); -// $preFix = Schema::getConnection()->getTablePrefix(); -// $indexesFound = $sm->listTableIndexes($preFix . 'yz_member_unique'); -// -// if (array_key_exists("idx_unionid", $indexesFound)) { -// $table->dropIndex('idx_unionid'); -// } -// if (!array_key_exists("uniacid_unionid_unique", $indexesFound)) { -// $table->unique(['uniacid', 'unionid'], 'uniacid_unionid_unique'); -// } -// }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_10_10_110400_delete_unique_index_to_yz_member_unique.php b/database/migrations/2022_10_10_110400_delete_unique_index_to_yz_member_unique.php deleted file mode 100644 index 7f5b2044..00000000 --- a/database/migrations/2022_10_10_110400_delete_unique_index_to_yz_member_unique.php +++ /dev/null @@ -1,39 +0,0 @@ -getDoctrineSchemaManager(); - $preFix = Schema::getConnection()->getTablePrefix(); - $indexesFound = $sm->listTableIndexes($preFix . 'yz_member_unique'); - if ($indexesFound) { - foreach ($indexesFound as $k=>$v) { - if ($v->getColumns() && count($v->getColumns()) == 1 && $v->getColumns()[0] === 'unionid') { - $table->dropIndex($k); - } - } - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_10_21_104154_alter_table_ims_yz_comment_config_add_column_is_order_detail_comment_show.php b/database/migrations/2022_10_21_104154_alter_table_ims_yz_comment_config_add_column_is_order_detail_comment_show.php deleted file mode 100644 index 8c3a3dc1..00000000 --- a/database/migrations/2022_10_21_104154_alter_table_ims_yz_comment_config_add_column_is_order_detail_comment_show.php +++ /dev/null @@ -1,39 +0,0 @@ -tinyInteger('is_order_detail_comment_show')->default(1)->comment('商品详情评论显示 1 显示 0不显示'); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_comment_config', function (Blueprint $table) { - if (Schema::hasColumn('yz_comment_config', 'is_order_detail_comment_show')) { - $table->dropColumn(['is_order_detail_comment_show']); - } - }); - } -} diff --git a/database/migrations/2022_10_21_171846_update_table_yz_member_child_time.php b/database/migrations/2022_10_21_171846_update_table_yz_member_child_time.php deleted file mode 100644 index cc9a24f2..00000000 --- a/database/migrations/2022_10_21_171846_update_table_yz_member_child_time.php +++ /dev/null @@ -1,40 +0,0 @@ -',0],['child_time','=',0]])->pluck('member_id'); - $record=MemberRecord::whereIn('uid',$list)->where([['deleted_at','=',NULL],['status','=',1]])->selectRaw('uid,max(created_at) as max_time')->groupBy('uid')->get(); - $record->each(function($item){ - MemberShopInfo::where('member_id',$item->uid)->update(['child_time'=>$item->max_time]); - }); - } catch (\Exception $e) { - \Log::debug('fill_error',$e->getMessage()); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_10_26_091535_add_time_to_yz_goods_service.php b/database/migrations/2022_10_26_091535_add_time_to_yz_goods_service.php deleted file mode 100644 index 447ff5d4..00000000 --- a/database/migrations/2022_10_26_091535_add_time_to_yz_goods_service.php +++ /dev/null @@ -1,52 +0,0 @@ -integer("time_type")->default(0)->nullable()->comment("时间方式0固定1循环"); - } - if (!Schema::hasColumn('yz_goods_service', 'loop_date_start')) { - $table->integer("loop_date_start")->nullable()->comment("循环开始日期"); - } - if (!Schema::hasColumn('yz_goods_service', 'loop_date_end')) { - $table->integer("loop_date_end")->nullable()->comment("循环结束日期"); - } - if (!Schema::hasColumn('yz_goods_service', 'loop_time_up')) { - $table->string("loop_time_up")->nullable()->comment("循环上架时间"); - } - if (!Schema::hasColumn('yz_goods_service', 'loop_time_down')) { - $table->string("loop_time_down")->nullable()->comment("循环下架时间"); - } - if (!Schema::hasColumn('yz_goods_service', 'auth_refresh_stock')) { - $table->integer("auth_refresh_stock")->default(1)->nullable()->comment("循环刷新库存"); - } - if (!Schema::hasColumn('yz_goods_service', 'original_stock')) { - $table->integer("original_stock")->nullable()->comment("循环库存"); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_10_26_144305_update_yz_order_goods_amd_yz_order_refund_goods_log_table.php b/database/migrations/2022_10_26_144305_update_yz_order_goods_amd_yz_order_refund_goods_log_table.php deleted file mode 100644 index 87d8f2e7..00000000 --- a/database/migrations/2022_10_26_144305_update_yz_order_goods_amd_yz_order_refund_goods_log_table.php +++ /dev/null @@ -1,62 +0,0 @@ -integer('refund_id')->default(0)->comment('进行中的售后记录ID')->index('refund_idx'); - } - - if (Schema::hasColumn('yz_order_goods', 'is_refund')) { - $table->integer('is_refund')->default(0)->change(); - } - }); - } - - if (Schema::hasTable('yz_order_refund_goods_log')) { - Schema::table('yz_order_refund_goods_log', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_refund_goods_log', 'refund_type')) { - $table->tinyInteger('refund_type')->nullable()->comment('售后类型,用于过滤非退款售后'); - } - }); - - Schema::table('yz_order_refund_goods_log', function (Blueprint $table) { - if (!Schema::hasColumn('yz_order_refund_goods_log', 'status')) { - $table->tinyInteger('status')->default(0)->nullable()->comment('售后商品状态'); - } - }); - } - - if (Schema::hasTable('yz_point_log')) { - Schema::table('yz_point_log', function (Blueprint $table) { - if (!Schema::hasColumn('yz_point_log', 'order_goods_id')) { - $table->integer('order_goods_id')->default(0)->comment( '订单商品id,退款返还积分使用'); - } else { - $table->integer('order_goods_id')->default(0)->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_10_31_110400_add_delivery_day_to_yz_order_address.php b/database/migrations/2022_10_31_110400_add_delivery_day_to_yz_order_address.php deleted file mode 100644 index dda93d6b..00000000 --- a/database/migrations/2022_10_31_110400_add_delivery_day_to_yz_order_address.php +++ /dev/null @@ -1,31 +0,0 @@ -string("delivery_day")->nullable()->comment("配送日期"); - $table->string("delivery_time")->nullable()->comment("配送时间"); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_11_09_145210_add_hide_goods_sales_to_yz_goods.php b/database/migrations/2022_11_09_145210_add_hide_goods_sales_to_yz_goods.php deleted file mode 100644 index ceabefe6..00000000 --- a/database/migrations/2022_11_09_145210_add_hide_goods_sales_to_yz_goods.php +++ /dev/null @@ -1,41 +0,0 @@ -tinyInteger('hide_goods_sales')->default(0)->comment('是否隐藏销量 1隐藏 0显示'); - } - }); - - Schema::table('yz_goods', function (Blueprint $table) { - if (!Schema::hasColumn('yz_goods', 'hide_goods_sales_alone')) { - $table->tinyInteger('hide_goods_sales_alone')->default(0)->comment('隐藏销量独立设置 1开启 0关闭'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_11_10_110400_add_index_to_yz_member_income.php b/database/migrations/2022_11_10_110400_add_index_to_yz_member_income.php deleted file mode 100644 index bbe224a4..00000000 --- a/database/migrations/2022_11_10_110400_add_index_to_yz_member_income.php +++ /dev/null @@ -1,29 +0,0 @@ -index(['uniacid','member_id','dividend_code','create_month'],'yz_member_income_sum_index'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2022_11_14_095259_update_yz_goods_option_title_length_table.php b/database/migrations/2022_11_14_095259_update_yz_goods_option_title_length_table.php deleted file mode 100644 index 3c61e432..00000000 --- a/database/migrations/2022_11_14_095259_update_yz_goods_option_title_length_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('title',255)->default('')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_11_16_153857_add_pay_type_id_to_yz_pay_order_table.php b/database/migrations/2022_11_16_153857_add_pay_type_id_to_yz_pay_order_table.php deleted file mode 100644 index 6a0d138c..00000000 --- a/database/migrations/2022_11_16_153857_add_pay_type_id_to_yz_pay_order_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('pay_type_id')->default(0)->comment('支付类型ID'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_12_07_105233_create_yz_goods_trade_set_table.php b/database/migrations/2022_12_07_105233_create_yz_goods_trade_set_table.php deleted file mode 100644 index da36d3fa..00000000 --- a/database/migrations/2022_12_07_105233_create_yz_goods_trade_set_table.php +++ /dev/null @@ -1,49 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->integer('goods_id')->comment('商品id')->index('goods_idx'); - $table->tinyInteger('hide_status')->nullable()->comment('隐藏售后按钮时间段开关'); - $table->string('begin_hide_day')->nullable()->comment('多少天后开始隐藏'); - $table->string('begin_hide_time')->nullable()->comment('多少天后的什么时间开始隐藏'); - $table->string('end_hide_day')->nullable()->comment('隐藏当日/次日结束隐藏'); - $table->string('end_hide_time')->nullable()->comment('结束隐藏时间'); - $table->string('auto_send')->nullable()->comment('自动发货开关'); - $table->string('auto_send_day')->nullable()->comment('多少天后自动发货'); - $table->string('auto_send_time')->nullable()->comment('自动发货时间'); - $table->string('arrived_day')->nullable()->comment('多少天后送达'); - $table->string('arrived_time')->nullable()->comment('送达时间'); - $table->string('arrived_word')->nullable()->comment('送达时间自定义文字'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_goods_trade_set` comment'商品--交易设置'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_trade_set'); - } -} diff --git a/database/migrations/2022_12_12_101940_add_buy_multiple_to_yz_goods_privilege_table.php b/database/migrations/2022_12_12_101940_add_buy_multiple_to_yz_goods_privilege_table.php deleted file mode 100644 index 32d8d340..00000000 --- a/database/migrations/2022_12_12_101940_add_buy_multiple_to_yz_goods_privilege_table.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('buy_multiple')->nullable()->comment('会员购买倍数'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_12_13_163211_add_country_code_to_yz_member_address_table.php b/database/migrations/2022_12_13_163211_add_country_code_to_yz_member_address_table.php deleted file mode 100644 index 82c28163..00000000 --- a/database/migrations/2022_12_13_163211_add_country_code_to_yz_member_address_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('country_code')->default('')->nullable()->comment('国家区号'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_12_13_171422_add_country_code_to_mc_member_address_table.php b/database/migrations/2022_12_13_171422_add_country_code_to_mc_member_address_table.php deleted file mode 100644 index 0e746723..00000000 --- a/database/migrations/2022_12_13_171422_add_country_code_to_mc_member_address_table.php +++ /dev/null @@ -1,34 +0,0 @@ -string('country_code')->default('')->nullable()->comment('国家区号'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2022_12_13_171435_add_created_type_to_yz_order.php b/database/migrations/2022_12_13_171435_add_created_type_to_yz_order.php deleted file mode 100644 index 8364f47d..00000000 --- a/database/migrations/2022_12_13_171435_add_created_type_to_yz_order.php +++ /dev/null @@ -1,34 +0,0 @@ -integer('created_type')->default(0)->comment('订单创建类型 0线上订单 1线下订单(pos收银机)'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2022_12_30_141917_add_option_buy_limit_to_yz_goods_privilege_table.php b/database/migrations/2022_12_30_141917_add_option_buy_limit_to_yz_goods_privilege_table.php deleted file mode 100644 index 5e9b3eda..00000000 --- a/database/migrations/2022_12_30_141917_add_option_buy_limit_to_yz_goods_privilege_table.php +++ /dev/null @@ -1,37 +0,0 @@ -text('option_buy_limit')->nullable()->comment('规格限购控制'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_privilege', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2022_12_30_161755_add_type_to_yz_member_bank_card.php b/database/migrations/2022_12_30_161755_add_type_to_yz_member_bank_card.php deleted file mode 100644 index bd13c6dc..00000000 --- a/database/migrations/2022_12_30_161755_add_type_to_yz_member_bank_card.php +++ /dev/null @@ -1,33 +0,0 @@ -boolean('type')->default(1)->comment('账户类型 1:对私,2:对公'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } -} diff --git a/database/migrations/2023_01_04_142752_create_yz_withdraw_income_deduction_love.php b/database/migrations/2023_01_04_142752_create_yz_withdraw_income_deduction_love.php deleted file mode 100644 index 899522e4..00000000 --- a/database/migrations/2023_01_04_142752_create_yz_withdraw_income_deduction_love.php +++ /dev/null @@ -1,43 +0,0 @@ -increments('id'); - $table->integer('uniacid')->comment('公众号')->index('uniacid_idx'); - $table->integer('member_id')->comment('会员ID'); - $table->integer('withdraw_id')->comment('提现ID'); - $table->integer('income_id')->comment('收入ID'); - $table->integer('status')->comment('状态:1-已扣除,-1已退还'); - $table->decimal('need_deduction_love_rate',10,2)->comment('扣除爱心值比例'); - $table->string('need_deduction_love_type',32)->comment('扣除爱心值类型'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_withdraw_income_deduction_love` comment'提现--收入提现扣除爱心值记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_withdraw_income_deduction_love'); - } -} diff --git a/database/migrations/2023_01_06_141917_add_type_to_yz_order_goods_table.php b/database/migrations/2023_01_06_141917_add_type_to_yz_order_goods_table.php deleted file mode 100644 index 4a338941..00000000 --- a/database/migrations/2023_01_06_141917_add_type_to_yz_order_goods_table.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('type')->nullable()->comment('商品类型'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_01_11_113955_create_yz_goods_trade_log.php b/database/migrations/2023_01_11_113955_create_yz_goods_trade_log.php deleted file mode 100644 index 716f5cfd..00000000 --- a/database/migrations/2023_01_11_113955_create_yz_goods_trade_log.php +++ /dev/null @@ -1,39 +0,0 @@ -increments('id'); - $table->integer('order_id')->comment('订单id'); - $table->integer('goods_id')->comment('商品id'); - $table->string('show_time_word')->comment('展示时间'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_goods_trade_log` comment'商品--商品交易记录'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_trade_log'); - } -} diff --git a/database/migrations/2023_02_09_175717_add_original_stock_to_yz_goods_limitbuy.php b/database/migrations/2023_02_09_175717_add_original_stock_to_yz_goods_limitbuy.php deleted file mode 100644 index 89abe151..00000000 --- a/database/migrations/2023_02_09_175717_add_original_stock_to_yz_goods_limitbuy.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('original_stock')->default(0)->nullable()->comment('商品原始库存'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_02_09_222636_add_area_info_to_yz_advertisement.php b/database/migrations/2023_02_09_222636_add_area_info_to_yz_advertisement.php deleted file mode 100644 index e1a13839..00000000 --- a/database/migrations/2023_02_09_222636_add_area_info_to_yz_advertisement.php +++ /dev/null @@ -1,40 +0,0 @@ -integer('area_open')->default(0)->comment('区域开启'); - }); - } - if (!Schema::hasColumn('yz_advertisement', 'longitude')) { - Schema::table('yz_advertisement', function (Blueprint $table) { - $table->string('longitude', 15)->default(''); - $table->string('latitude', 15)->default(''); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_02_20_141254_create_yz_pay_callback_exception_table.php b/database/migrations/2023_02_20_141254_create_yz_pay_callback_exception_table.php deleted file mode 100644 index 8ef7e480..00000000 --- a/database/migrations/2023_02_20_141254_create_yz_pay_callback_exception_table.php +++ /dev/null @@ -1,47 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->string('pay_sn',100)->comment('支付商户号'); - $table->integer('pay_type_id')->comment('支付类型ID'); - $table->integer('error_code')->default(0)->comment('错误类型'); - $table->string('error_msg')->default('')->comment('错误提示'); - $table->string('handle_msg')->default('')->comment('手动处理失败提示'); - $table->text('result')->nullable()->comment('支付回调处理参数'); - $table->text('response')->nullable()->comment('异步响应数据'); - $table->tinyInteger('status')->default(0)->comment('处理状态:0未处理'); - $table->integer('frequency')->default(0)->comment('异常频率'); - $table->integer('record_at')->nullable()->comment('记录时间'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_pay_callback_exception` comment'订单--支付异步订单报错'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_pay_callback_exception'); - } -} diff --git a/database/migrations/2023_03_08_152635_add_time_limit_to_yz_goods_privilege_table.php b/database/migrations/2023_03_08_152635_add_time_limit_to_yz_goods_privilege_table.php deleted file mode 100644 index 7a20ca68..00000000 --- a/database/migrations/2023_03_08_152635_add_time_limit_to_yz_goods_privilege_table.php +++ /dev/null @@ -1,44 +0,0 @@ -boolean('buy_limit_status')->default(0)->comment('限购时段状态,1-开启'); - }); - } - if (!Schema::hasColumn('yz_goods_privilege', 'time_limits')) { - Schema::table('yz_goods_privilege', function (Blueprint $table) { - $table->text('time_limits')->nullable()->comment('限购时段时间段和数量'); - }); - } - if (!Schema::hasColumn('yz_goods_privilege', 'buy_limit_name')) { - Schema::table('yz_goods_privilege', function (Blueprint $table) { - $table->string('buy_limit_name')->nullable()->comment('限时购自定义名称'); - }); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_05_09_144141_create_yz_goods_contact_tel.php b/database/migrations/2023_05_09_144141_create_yz_goods_contact_tel.php deleted file mode 100644 index b19b4b91..00000000 --- a/database/migrations/2023_05_09_144141_create_yz_goods_contact_tel.php +++ /dev/null @@ -1,38 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('goods_id')->comment('商品id'); - $table->string('contact_tel')->nullable()->comment('联系电话'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_goods_contact_tel` comment'订单--支付异步订单报错'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_contact_tel'); - } -} diff --git a/database/migrations/2023_05_16_140835_add_filed_to_member_address20230516.php b/database/migrations/2023_05_16_140835_add_filed_to_member_address20230516.php deleted file mode 100644 index d23a4732..00000000 --- a/database/migrations/2023_05_16_140835_add_filed_to_member_address20230516.php +++ /dev/null @@ -1,41 +0,0 @@ -string('position_address')->default('')->comment('位置地址'); - } - }); - } - if (Schema::hasTable('mc_member_address')) { - Schema::table('mc_member_address', function (Blueprint $table) { - if (!Schema::hasColumn('mc_member_address', 'position')) { - $table->string('position_address')->default('')->comment('位置地址'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_06_06_124600_add_idcard_addr_to_mc_members.php b/database/migrations/2023_06_06_124600_add_idcard_addr_to_mc_members.php deleted file mode 100644 index db6989f3..00000000 --- a/database/migrations/2023_06_06_124600_add_idcard_addr_to_mc_members.php +++ /dev/null @@ -1,36 +0,0 @@ -text('idcard_addr')->default('')->comment('身份证地址'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('mc_members', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_06_09_170157_alter_table_yz_order_change_order_sn_collate.php b/database/migrations/2023_06_09_170157_alter_table_yz_order_change_order_sn_collate.php deleted file mode 100644 index 814ce4bd..00000000 --- a/database/migrations/2023_06_09_170157_alter_table_yz_order_change_order_sn_collate.php +++ /dev/null @@ -1,34 +0,0 @@ -getTablePrefix() . "yz_order` CHANGE COLUMN `order_sn` `order_sn` VARCHAR(23) NOT NULL DEFAULT '' COMMENT '订单编号' COLLATE 'utf8mb4_unicode_ci'"); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_06_12_150110_change_columns_type_of_yz_balance.php b/database/migrations/2023_06_12_150110_change_columns_type_of_yz_balance.php deleted file mode 100644 index 366a7154..00000000 --- a/database/migrations/2023_06_12_150110_change_columns_type_of_yz_balance.php +++ /dev/null @@ -1,37 +0,0 @@ -integer('type')->comment('变动方式,1收入,2支出')->change(); - } - if (Schema::hasColumn('yz_balance', 'service_type')) { - $table->integer('service_type')->comment('变动类型')->change(); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_06_20_124600_add_weight_to_yz_order_goods.php b/database/migrations/2023_06_20_124600_add_weight_to_yz_order_goods.php deleted file mode 100644 index 62bc3937..00000000 --- a/database/migrations/2023_06_20_124600_add_weight_to_yz_order_goods.php +++ /dev/null @@ -1,34 +0,0 @@ -decimal('weight', 10, 2)->default(0)->comment('称重重量'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - - } -} diff --git a/database/migrations/2023_06_30_163307_add_index_to_yz_goods_category_table.php b/database/migrations/2023_06_30_163307_add_index_to_yz_goods_category_table.php deleted file mode 100644 index 15040ec3..00000000 --- a/database/migrations/2023_06_30_163307_add_index_to_yz_goods_category_table.php +++ /dev/null @@ -1,45 +0,0 @@ -getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_goods_category'); - $flag = true; - foreach ($all_index as $index) { - if (in_array('category_id',$index->getColumns())) { - $flag = false; - } - } - //存在索引就不添加 - $flag && $table->index('category_id','idx_category_id'); - } - }); - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_goods_category', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_07_12_163307_add_is_shop_to_yz_comment_table.php b/database/migrations/2023_07_12_163307_add_is_shop_to_yz_comment_table.php deleted file mode 100644 index cc5f5f1f..00000000 --- a/database/migrations/2023_07_12_163307_add_is_shop_to_yz_comment_table.php +++ /dev/null @@ -1,37 +0,0 @@ -boolean('is_shop')->default(0)->comment('1是商家回复'); - } - }); - } - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('yz_comment', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_07_17_135019_transfer_data_member_setting_to_lang_setting.php b/database/migrations/2023_07_17_135019_transfer_data_member_setting_to_lang_setting.php deleted file mode 100644 index db4438dd..00000000 --- a/database/migrations/2023_07_17_135019_transfer_data_member_setting_to_lang_setting.php +++ /dev/null @@ -1,44 +0,0 @@ -uniacid = $u->uniacid; - Setting::$uniqueAccountId = $u->uniacid; - //余额与积分自定义移至语言设置 - $shopSet = Setting::get('shop.shop'); - $langSet = Setting::get('shop.lang', ['lang' => 'zh_cn']); - $lang = $langSet['lang'] ? : 'zh_cn'; - $langSet[$lang]['member_center']['credit'] = $shopSet['credit'] ? : '余额'; - $langSet[$lang]['member_center']['credit1'] = $shopSet['credit1'] ? : '积分'; - Setting::set('shop.lang', $langSet); - } - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('lang_setting', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_07_26_144141_create_yz_goods_image_link.php b/database/migrations/2023_07_26_144141_create_yz_goods_image_link.php deleted file mode 100644 index 59d5ba9a..00000000 --- a/database/migrations/2023_07_26_144141_create_yz_goods_image_link.php +++ /dev/null @@ -1,41 +0,0 @@ -increments('id'); - $table->integer('uniacid')->default(0); - $table->integer('goods_id')->comment('商品id'); - $table->integer('status')->comment('是否启用 1是 0否'); - $table->string('image_web_link')->default('')->comment('商品详情H5跳转链接'); - $table->string('image_mini_link')->default('')->comment('商品详情小程序跳转路由'); - $table->string('button_name')->default('')->comment('按钮名称'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - }); - \Illuminate\Support\Facades\DB::statement("ALTER TABLE `" . app('db')->getTablePrefix() . "yz_goods_image_link` comment'商品--详情图跳转链接'");//表注释 - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_goods_image_link'); - } -} diff --git a/database/migrations/2023_07_31_100809_add_order_sn_index_yz_member_income_table.php b/database/migrations/2023_07_31_100809_add_order_sn_index_yz_member_income_table.php deleted file mode 100644 index a086a0e0..00000000 --- a/database/migrations/2023_07_31_100809_add_order_sn_index_yz_member_income_table.php +++ /dev/null @@ -1,42 +0,0 @@ -getDoctrineSchemaManager(); - //获取该表的所有索引 - $all_index = $sm->listTableIndexes(app('db')->getTablePrefix().'yz_member_income'); - $flag = true; - foreach ($all_index as $index) { - if (in_array('order_sn',$index->getColumns())) { - $flag = false; - } - } - //存在索引就不添加 - $flag && $table->index('order_sn','idx_order_sn'); - } - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } -} diff --git a/database/migrations/2023_08_24_100226_add_idcard_image_to_mc_members.php b/database/migrations/2023_08_24_100226_add_idcard_image_to_mc_members.php deleted file mode 100644 index 9fb3463a..00000000 --- a/database/migrations/2023_08_24_100226_add_idcard_image_to_mc_members.php +++ /dev/null @@ -1,40 +0,0 @@ -text('idcard_front')->nullable()->comment('身份证正面地址'); - } - - if (!Schema::hasColumn('mc_members', 'idcard_back')) { - $table->text('idcard_back')->nullable()->comment('身份证反面地址'); - } - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('mc_members', function (Blueprint $table) { - // - }); - } -} diff --git a/database/migrations/2023_08_24_154808_create_yz_member_history_city.php b/database/migrations/2023_08_24_154808_create_yz_member_history_city.php deleted file mode 100644 index 8df83781..00000000 --- a/database/migrations/2023_08_24_154808_create_yz_member_history_city.php +++ /dev/null @@ -1,41 +0,0 @@ -bigIncrements('id'); - $table->integer('uniacid')->nullable(false); - $table->integer('member_id')->nullable(false)->comment('用户id'); - $table->integer('city_id')->nullable(false)->comment('城市id'); - $table->string('city_name')->nullable(false)->comment('城市名称'); - $table->integer('created_at')->nullable(); - $table->integer('updated_at')->nullable(); - $table->integer('deleted_at')->nullable(); - }); - } - - - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('yz_member_history_city'); - } -} diff --git a/database/redis.php b/database/redis.php deleted file mode 100644 index c75b0804..00000000 --- a/database/redis.php +++ /dev/null @@ -1,8 +0,0 @@ -call(SettingSeeder::class); - //权限 -// $this->call(YzPermissionSeeder::class); - //用户角色 - //$this->call(YzUserRoleSeeder::class); - /** - * 地址 - */ - //地址(省份,城市,区域) - //$this->call(YzAddressSeeder::class); - //地址(街道) - //$this->call(YzStreetSeeder::class); - /** - * 商品 - */ - //商品分类 - //$this->call(YzCategorySeeder::class); - //商品评论 - //$this->call(YzCommentSeeder::class); - //商品消息推送 - //$this->call(YzNoticeSeeder::class); - //商品消息推送 - //$this->call(YzSaleSeeder::class); - //$this->call(YzOptionsTableSeeder::class); - //模板消息 - //$this->call(YzTemplateMessageTableSeeder::class); -// $this->call(YzMenuUpgradeSeeder::class); - -// require "YzUniacidSeeder.php"; -// $this->call(YzUniacidSeeder::class); - - -// Log::info(file_get_contents('/data/wwwroot/release.yunzshop.com/addons/yun_shop/vendor/composer/autoload_classmap.php')); -// Log::info(file_get_contents('/data/wwwroot/release.yunzshop.com/addons/yun_shop/vendor/composer/autoload_static.php')); -// Log::info(file_get_contents('/data/wwwroot/release.yunzshop.com/addons/yun_shop/database/seeds/YzPluginUniacidSeeder.php')); - -// $this->call(YzpluginSeeder::class); - - require_once "YzPluginUniacidSeeder.php"; - $this->call(YzPluginUniacidSeeder::class); - } -} diff --git a/database/seeds/GoodsSeeder.php b/database/seeds/GoodsSeeder.php deleted file mode 100644 index 37346319..00000000 --- a/database/seeds/GoodsSeeder.php +++ /dev/null @@ -1,43 +0,0 @@ -oldGoodsTable)) { - echo $this->oldGoodsTable." 不存在 跳过\n"; - return; - } - $dataList = \Illuminate\Support\Facades\DB::table($this->goodsTable)->get(); - if($dataList->isNotEmpty()){ - echo "{$this->goodsTable}已经有数据了跳过\n"; - return ; - } - - $list = \Illuminate\Support\Facades\DB::table($this->oldGoodsTable)->get(); - if($list){ - - } - } -} \ No newline at end of file diff --git a/database/seeds/OrderGoodsSeeder.php b/database/seeds/OrderGoodsSeeder.php deleted file mode 100644 index 1566c591..00000000 --- a/database/seeds/OrderGoodsSeeder.php +++ /dev/null @@ -1,109 +0,0 @@ -sourceTable)) { - echo $this->sourceTable." 不存在 跳过\n"; - return; - } - if (!Schema::hasTable($this->sourceGoodsTable)) { - echo $this->sourceGoodsTable." 不存在 跳过\n"; - return; - } - //检测新的数据表是否有数据 -// $newList = DB::table($this->table)->first(); -// if($newList){ -// echo $this->table."数据表已经有数据, 请检查.\n"; -// return; -// } -// print_r($_SERVER); - - $sourceList = \Illuminate\Support\Facades\DB::table($this->sourceTable)->chunk(100, function($records){ - foreach ($records as $record){ - - //如果旧表字段没有值,则设为0 - foreach ($record as $k => $v){ - if(!$v){ - if ($k != 'total'){ - $record[$k] = 0; - } else { - $record[$k] = 1; //新表中 total 字段默认为 1 - } - } - } - - //获取"商品名称"和"商品图片URL" - $goodInfo = \Illuminate\Support\Facades\DB::table($this->sourceGoodsTable)->select('title','thumb') - ->where('id','=',$record['goodsid'])->first(); - if ($goodInfo){ - $record['title'] = $goodInfo['title']; - if(preg_match('/^http.*/',$goodInfo['thumb'])){ - $record['thumb'] = $goodInfo['thumb']; //todo 最后的url取决于迁徙后放在哪个路径 - } else if (preg_match('/^images.*/',$goodInfo['thumb'])){ - $record['thumb'] = 'http://bztang.cdlfjy.com'.'/attachment/'.$goodInfo['thumb']; //todo 最后的url取决于迁徙后放在哪个路径 - //无法通过全局变量$_SERVER['SERVER_NAME']获取网站域名 - } - } else { -// echo '在旧的goods表中找不到该商品信息'; -// return; - $record['title'] = 0; //todo 调试用 - $record['thumb'] = 0; //todo 调试用 - } - - //获取orderid和member_id -// $orderMapping = DB::table($this->mappingOrderTable)->select('new_order_id','new_member_id') -// ->where('old_order_id','=',$record['orderid'])->first(); -// if(!$orderMapping){ -// echo $this->mappingOrderTable.'表中没有找到新旧orderid的对应关系,旧orderid为'.$record['orderid']; -// return; -// } -// $uid = $orderMapping['new_member_id']; -// $orderId = $orderMapping['new_order_id']; - $uid = 1; //todo 调试用 - $orderId = $record['orderid']; //todo 调试用 - - //获取goods_id -// $goodsId = DB::table($this->mappingGoodTable)->select('new_good_id') -// ->where('old_good_id','=',$record['goodsid'])->first(); -// if(!goodsId){ -// echo $this->mappingGoodTable.'表中没有找到新旧goods_id的对应关系,旧goodsid为'.$record['goodsid']; -// return; -// } - $goodsId = $record['goodsid']; //todo 调试用 - - \Illuminate\Support\Facades\DB::table($this->table)->insert( - [ - 'uniacid' => $record['uniacid'], //公众号ID - 'order_id' => $orderId, //订单ID - 'member_id' => $uid, //会员身份标识, mc_member表的uid - 'goods_id' => $goodsId, //商品ID - 'goods_sn' => $record['goodssn'], //商品编码 //todo productsn? - 'goods_price' => $record['price'] * 100, //商品快照价格 (单位为"分") - 'total' => $record['total'], //订单商品件数 - 'price' => $record['realprice'] * 100, //真实价格 (单位为"分") - 'title' => $record['title'], //商品名称 - 'thumb' => $record['thumb'], //商品图片 - 'create_time' => $record['createtime'], //生成记录的时间 - ] - ); - } - }); - } -} diff --git a/database/seeds/OrderSeeder.php b/database/seeds/OrderSeeder.php deleted file mode 100644 index 85149aa7..00000000 --- a/database/seeds/OrderSeeder.php +++ /dev/null @@ -1,115 +0,0 @@ -sourceTable)) { - echo $this->sourceTable." 不存在 跳过\n"; - return; - } - //检测新的数据表是否有数据 -// $newList = DB::table($this->orderTable)->first(); -// if($newList){ -// echo $this->orderTable . "数据表已经有数据, 请检查.\n"; -// return; -// } - - $sourceList = \Illuminate\Support\Facades\DB::table($this->sourceTable)->chunk(100, function($records){ - foreach ($records as $record){ - - //如果旧表字段没有值,则设为0 - foreach ($record as $k => $v){ - if(!$v){ - $record[$k] = 0; - } - } - - //"删除时间"在旧表中没有对应字段, 只有"是否删除"字段 - //如果该订单删除, 则将"取消订单时间"设置为该订单相关时间的最大值 //todo - $recentTime = max($record['createtime'], $record['finishtime'], - $record['paytime'], $record['sendtime'], $record['canceltime']); - if ($record['deleted'] != 0){ - $record['deleted_at'] = $recentTime; - } else { - $record['deleted_at'] = 0; - } - - //"updated_at"在旧表中没有对应字段, 取该订单相关时间的最大值 //todo - $record['updated_at'] = $recentTime; - - //旧表中"openid"和微擎"mc_member"表的uid的对应 - //微信登录用户的openid和uid的对应关系, 借助数据表mc_mapping_fans - //手机注册用户的openid和uid的对应关系, 借助会员迁移后生成的临时表 - if (preg_match('/^o.*/', $record['openid'])){ //以o开头的就是微信登录用户 - $uid = \Illuminate\Support\Facades\DB::table($this->memberMappingTable)->select('uid') - ->where('openid','=',$record['openid'])->first(); - if($uid){ - $record['uid'] = $uid['uid']; - } else { -// echo "mc_mapping_fans表内缺少用户".$record['openid']."的uid"."\n"; -// exit; - $record['uid'] = 0; //todo 调试用 - } -// } else if (preg_match('/^u.*/', $record['openid'])){ //以u开头的就是手机注册用户 -// $uid = DB::table($this->newMappingMemberTable) //todo 等待"会员重构组"的结果 -// ->where('openid','=',$record['openid'])->first(); -// if($uid){ -// $record['uid'] = $uid; -// } else { -// echo 'new_mapping_fans表内缺少该用户的uid'."\n"; -// exit; -// } - } else if(preg_match('/^u.*/', $record['openid'])){ - $record['uid'] = 0; //todo 临时调试用, 等待"会员重构组"针对原来的自编openid用户的会员的mapping数据 - } else { -// echo '获取 uid 时产生非预期结果, 请检查错误'."\n"; -// return; - $record['uid'] = 0; //todo 临时调试用 - } - - $newOrderId = \Illuminate\Support\Facades\DB::table($this->orderTable)->insertGetId( - [ - 'uniacid' => $record['uniacid'], //公众号ID - 'member_id' => $record['uid'], //mc_member的uid - 'order_sn' => $record['ordersn'], //订单号 - 'price' => $record['price'] * 100, //订单金额 (单位为"分") - 'goods_price' => $record['goodsprice'] * 100, //商品金额 (单位为"分") - 'status' => $record['status'], //订单状态(-1为订单取消,0为待支付,1为已付款,2为已发货,3为已完成) - 'create_time' => $record['createtime'], //下单时间 - 'is_deleted' => $record['deleted'], //是否删除 - 'is_member_deleted' => $record['userdeleted'], //是否用户删除 - 'finish_time' => $record['finishtime'], //交易完成时间 - 'pay_time' => $record['paytime'], //支付时间 - 'send_time' => $record['sendtime'], //发货时间 - 'cancel_time' => $record['canceltime'], //取消订单时间 - 'created_at' => $record['createtime'], //框架自动记录时间 - 'updated_at' => $record['updated_at'], //框架自动记录时间 - 'deleted_at' => $record['deleted_at'], //框架自动记录时间 - 'dispatch_type_id' => $record['dispatchid'], //配送方式ID - 'pay_type_id' => $record['paytype'], //支付方式ID (1为余额,2为在线,3为到付) - ] - ); - - \Illuminate\Support\Facades\DB::table($this->orderMappingTable)->insert( - [ - 'old_order_id' => $record['id'], - 'new_order_id' => $newOrderId, - 'old_openid' => $record['openid'], - 'new_member_id' =>$record['uid'] - ] - ); - } - }); - } - -} \ No newline at end of file diff --git a/database/seeds/PosterSeeder.php b/database/seeds/PosterSeeder.php deleted file mode 100644 index fe0a40ec..00000000 --- a/database/seeds/PosterSeeder.php +++ /dev/null @@ -1,17 +0,0 @@ -create()->make(); -// factory(Yunshop\Poster\PosterModel::class, 2)->create() -// ->each(function($u){ -// $u->supplement()->save(factory(Yunshop\Poster\PosterModel::class)->make()); -// }); -// factory('Yunshop\') - } -} \ No newline at end of file diff --git a/database/seeds/PosterSupplementSeeder.php b/database/seeds/PosterSupplementSeeder.php deleted file mode 100644 index ed7fc3be..00000000 --- a/database/seeds/PosterSupplementSeeder.php +++ /dev/null @@ -1,11 +0,0 @@ -create()->make(); - } -} \ No newline at end of file diff --git a/database/seeds/SettingSeeder.php b/database/seeds/SettingSeeder.php deleted file mode 100644 index b52c8be2..00000000 --- a/database/seeds/SettingSeeder.php +++ /dev/null @@ -1,79 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_setting 已经有数据了跳过\n"; - return ; - } - - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list){ - foreach ($list as $v){ - - Setting::$uniqueAccountId = $v['uniacid']; - if($v['sets']) { - $sets = @unserialize($this->_fixData($v['sets'])); - if($sets) { - foreach ($sets as $k1 => $v1) { - Setting::set('shop.' . $k1, $v1); - } - } - } - if($v['plugins']) { - $plugins = @unserialize($this->_fixData($v['plugins'])); - if($plugins) { - foreach ($plugins as $k2 => $v2) { - if(is_array($v2)) { - foreach ($v2 as $kk2 => $vv2) { - Setting::set(($k2 ? : 'plugin') . '.' . $kk2, $vv2); - } - }else{ - Setting::set('plugin.' . $k2, $v2); - } - } - } - } - if($v['sec']) { - $sec = @unserialize($this->_fixData($v['sec'])); - if($sec) { - foreach ($sec as $k3 => $v3) { - Setting::set('pay.' . $k3, $v3); - } - } - } - echo "完成:uniacid:".$v['uniacid'] ."\n"; - } - } - } - - private function _fixData($badData) - { - $data = preg_replace_callback( - '/(?<=^|\{|;)s:(\d+):\"(.*?)\";(?=[asbdiO]\:\d|N;|\}|$)/s', - function($m){ - return 's:' . mb_strlen($m[2]) . ':"' . $m[2] . '";'; - }, - $badData - ); - return $data; - } -} diff --git a/database/seeds/YzAddressSeeder.php b/database/seeds/YzAddressSeeder.php deleted file mode 100644 index 6cb0fb28..00000000 --- a/database/seeds/YzAddressSeeder.php +++ /dev/null @@ -1,42 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_address 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'id'=>$v['id'], - 'areaname'=>$v['areaname'], - 'parentid'=>$v['parentid'], - 'level'=>$v['level'] - ]); - } - } - - // TODO: Implement run() method. - } - -} \ No newline at end of file diff --git a/database/seeds/YzCategorySeeder.php b/database/seeds/YzCategorySeeder.php deleted file mode 100644 index a9f8606b..00000000 --- a/database/seeds/YzCategorySeeder.php +++ /dev/null @@ -1,48 +0,0 @@ -newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_category 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'id'=> $v['id'], - 'uniacid'=> $v['uniacid'], - 'name'=> $v['name'], - 'thumb'=> $v['thumb'], - 'parent_id'=> $v['parentid'], - 'description'=> $v['description'], - 'display_order'=> $v['displayorder'], - 'enabled'=> $v['enabled'], - 'is_home'=> $v['ishome'], - 'adv_img'=> $v['advimg'], - 'adv_url'=> $v['advurl'], - 'level'=> $v['level'], - 'created_at'=> time(), - 'updated_at'=> NULL, - 'deleted_at'=> NULL - ]); - } - } - - } -} \ No newline at end of file diff --git a/database/seeds/YzCommentSeeder.php b/database/seeds/YzCommentSeeder.php deleted file mode 100644 index 90975699..00000000 --- a/database/seeds/YzCommentSeeder.php +++ /dev/null @@ -1,117 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if ($newList->isNotEmpty()) { - echo "yz_comment 已经有数据了跳过\n"; - return; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if ($list) { - foreach ($list as $v) { - $uid = Member::getUidByOpenID($v['openid']); - //迁移主评论 - $cid = \Illuminate\Support\Facades\DB::table($this->newTable)->insertGetId([ - 'uniacid' => $v['uniacid'], - 'order_id' => $v['orderid'], - 'goods_id' => $v['goodsid'], - 'uid' => $uid, - 'nick_name' => $v['nickname'], - 'head_img_url' => $v['headimgurl'], - 'content' => $v['content'], - 'level' => $v['level'], - 'images' => $v['images'], - 'comment_id' => 0, - 'reply_id' => 0, - 'reply_name' => Null, - 'created_at' => $v['createtime'], - 'updated_at' => NULL, - 'deleted_at' => $v['deleted'] ? time() : NULL - ]); - //迁移管理员回复主评论 - if (!empty($v['reply_content'])) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'uniacid' => $v['uniacid'], - 'order_id' => $v['orderid'], - 'goods_id' => $v['goodsid'], - 'uid' => 0, - 'nick_name' => '', - 'head_img_url' => '', - 'content' => $v['reply_content'], - 'level' => 0, - 'images' => $v['reply_images'], - 'comment_id' => $cid, - 'reply_id' => $uid, - 'reply_name' => $v['nickname'], - 'created_at' => $v['createtime'] + 7200, - 'updated_at' => NULL, - 'deleted_at' => $v['deleted'] ? time() : NULL, - ]); - } - //迁移追加评论 - if (!empty($v['append_content'])) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'uniacid' => $v['uniacid'], - 'order_id' => $v['orderid'], - 'goods_id' => $v['goodsid'], - 'uid' => $uid, - 'nick_name' => $v['nickname'], - 'head_img_url' => $v['headimgurl'], - 'content' => $v['append_content'], - 'level' => 0, - 'images' => $v['append_images'], - 'comment_id' => $cid, - 'reply_id' => 0, - 'reply_name' => Null, - 'created_at' => $v['createtime'] + 14000, - 'updated_at' => NULL, - 'deleted_at' => $v['deleted'] ? time() : NULL, - ]); - } - //迁移管理员回复追加评论 - if (!empty($v['append_reply_content'])) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'uniacid' => $v['uniacid'], - 'order_id' => $v['orderid'], - 'goods_id' => $v['goodsid'], - 'uid' => 0, - 'nick_name' => '', - 'head_img_url' => '', - 'content' => $v['append_reply_content'], - 'level' => 0, - 'images' => $v['append_reply_images'], - 'comment_id' => $cid, - 'reply_id' => $uid, - 'reply_name' => $v['nickname'], - 'created_at' => $v['createtime'] + 21200, - 'updated_at' => NULL, - 'deleted_at' => $v['deleted'] ? time() : NULL, - ]); - } - } - } - - // TODO: Implement run() method. - } - -} \ No newline at end of file diff --git a/database/seeds/YzDispatchSeeder.php b/database/seeds/YzDispatchSeeder.php deleted file mode 100644 index 374cd4b8..00000000 --- a/database/seeds/YzDispatchSeeder.php +++ /dev/null @@ -1,51 +0,0 @@ -newTable)->get(); - if ($newList->isNotEmpty()) { - echo "yz_goods_share 已经有数据了跳过\n"; - return; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if ($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'uniacid' => $v['uniacid'], - 'dispatch_name' => $v['dispatchname'], - 'display_order' => $v['displayorder'], - 'first_weight_price' => $v['firstprice'], - 'another_weight_price' => $v['secondprice'], - 'first_weight' => $v['firstweight'], - 'another_weight' => $v['secondweight'], - 'areas' => $v['areas'], - 'carriers' => $v['carriers'], - 'enabled' => $v['enabled'], - 'is_default' => $v['isdefault'], - 'calculate_type' => $v['calculatetype'], - 'first_piece' => $v['firstnum'], - 'another_piece' => $v['secondnum'], - 'first_piece_price' => $v['firstnumprice'], - 'another_piece_price' => $v['secondnumprice'], - - ]); - - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzGoodsDiscountSeeder.php b/database/seeds/YzGoodsDiscountSeeder.php deleted file mode 100644 index e355e253..00000000 --- a/database/seeds/YzGoodsDiscountSeeder.php +++ /dev/null @@ -1,56 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if ($newList->isNotEmpty()) { - echo "yz_goods_share 已经有数据了跳过\n"; - return; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - - $memberLevels = MemberLevel::getMemberLevelList(); - if ($list) { - foreach ($list as $v) { - $discounts = json_decode($v['discounts'], true); - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id' => $v['id'], - 'level_discount_type' => $v['discounttype'], - 'discount_method' => $v['discountway'], - 'level_id' => 0, - 'discount_value' => $discounts['default'], - ]); - foreach ($memberLevels as $m) { - if ($discounts['level' . $m['id']]) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id' => $v['id'], - 'level_discount_type' => $v['discounttype'], - 'discount_method' => $v['discountway'], - 'level_id' => $m['id'], - 'discount_value' => $discounts['level' . $m['id']], - ]); - } - } - } - } - } -} \ No newline at end of file diff --git a/database/seeds/YzGoodsDispatchSeeder.php b/database/seeds/YzGoodsDispatchSeeder.php deleted file mode 100644 index 1576d486..00000000 --- a/database/seeds/YzGoodsDispatchSeeder.php +++ /dev/null @@ -1,42 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_goods_share 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id'=> $v['id'], - 'dispatch_type'=> $v['dispatchtype'], - 'dispatch_price'=> $v['dispatchprice'], - 'dispatch_id'=> $v['dispatchid'], - 'is_cod'=> $v['cash'], - ]); - - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzGoodsPrivilegeSeeder.php b/database/seeds/YzGoodsPrivilegeSeeder.php deleted file mode 100644 index 9f9ef305..00000000 --- a/database/seeds/YzGoodsPrivilegeSeeder.php +++ /dev/null @@ -1,47 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_goods_share 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id'=> $v['id'], - 'show_levels'=> $v['showlevels'], - 'show_groups'=> $v['showgroups'], - 'buy_levels'=> $v['buylevels'], - 'buy_groups'=> $v['buygroups'], - 'once_buy_limit'=> $v['maxbuy'], - 'total_buy_limit'=> $v['usermaxbuy'], - 'time_begin_limit'=> $v['timestart'], - 'time_end_limit'=> $v['timeend'], - 'enable_time_limit'=> 0, - ]); - - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzGoodsShareSeeder.php b/database/seeds/YzGoodsShareSeeder.php deleted file mode 100644 index 26dab902..00000000 --- a/database/seeds/YzGoodsShareSeeder.php +++ /dev/null @@ -1,44 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_goods_share 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id'=> $v['id'], - 'need_follow'=> $v['needfollow'], - 'no_follow_message'=> $v['followtip'], - 'follow_message'=> $v['followurl'], - 'share_title'=> $v['share_title'], - 'share_thumb'=> $v['share_icon'], - 'share_desc'=> $v['description'], - ]); - - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzMaterialCenterSeeder.php b/database/seeds/YzMaterialCenterSeeder.php deleted file mode 100644 index b5db2700..00000000 --- a/database/seeds/YzMaterialCenterSeeder.php +++ /dev/null @@ -1,80 +0,0 @@ -uniTable = 'yz_uniacid_app'; - } - } - - /** - * Run the database seeds. - * - * @return void - */ - public function run() - { - //获取全部平台 id - $uniAccount = \Illuminate\Support\Facades\DB::table($this->uniTable)->get(); - - //获取全部素材id,批量填充分类到表中 - $material_ids = \Illuminate\Support\Facades\DB::table($this->table)->select('id','uniacid')->get(); - - $has_category_table = \Illuminate\Support\Facades\DB::table($this->category_table)->select('id')->first(); - $goods_category_table = \Illuminate\Support\Facades\DB::table($this->goods_category_table)->select('id')->first(); - - $category_data = $goods_category_data = []; - $i = 1; - - if(!empty($material_ids) && !$has_category_table && !$goods_category_table){ - //每个平台生成默认分类 - foreach ($uniAccount as $u) { - $category_data[] = [ - 'uniacid' => $u['uniacid'], - 'name' => '默认分类(一级)', - 'parent_id' => 0, - 'level' => 1, - 'created_at' => time(), - 'updated_at' => time(), - ]; - $category_data[] = [ - 'uniacid' => $u['uniacid'], - 'name' => '默认分类', - 'parent_id' => $i, - 'level' => 2, - 'created_at' => time(), - 'updated_at' => time(), - ]; - foreach ($material_ids as $v){ - $ids = $i+1; - - if($v['uniacid'] == $u['uniacid']){ - $goods_category_data[] = [ - 'material_id' => $v['id'], - 'category_id' => $ids, - 'category_ids' => $i.",".$ids, - 'created_at' => time(), - 'updated_at' => time(), - ]; - } - } - $i += 2; - } - - //添加数据 - \Illuminate\Support\Facades\DB::table($this->category_table)->insert($category_data); - \Illuminate\Support\Facades\DB::table($this->goods_category_table)->insert($goods_category_data); - - } - - } -} diff --git a/database/seeds/YzMenuUpgradeSeeder.php b/database/seeds/YzMenuUpgradeSeeder.php deleted file mode 100644 index 97fbecd1..00000000 --- a/database/seeds/YzMenuUpgradeSeeder.php +++ /dev/null @@ -1,42 +0,0 @@ -table)->where('item', 'system_update')->first(); - if ($item) { - \Log::info('system_update 已经有数据了跳过'); - echo "system_update 已经有数据了跳过\n"; - return; - } - \Log::info($this->table.'增加 系统升级'); - $data = [ - 'name' => '系统升级', - 'item' => 'system_update', - 'url' => 'update.index', - 'url_params' => '', - 'permit' => 1, - 'menu' => 1, - 'icon' => 'fa-arrow-circle-up', - 'parent_id' => 1, - 'sort' => 0, - 'status' => 1, - 'created_at' => time(), - ]; - \Illuminate\Support\Facades\DB::table($this->table)->insert($data); - } - -} diff --git a/database/seeds/YzNoticeSeeder.php b/database/seeds/YzNoticeSeeder.php deleted file mode 100644 index 485d447a..00000000 --- a/database/seeds/YzNoticeSeeder.php +++ /dev/null @@ -1,46 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_goods_notices 已经有数据了跳过\n"; - return ; - } - $list = DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - $uid = \app\frontend\modules\member\models\McMappingFansModel::getUId($v['noticeopenid']); - $noticetype = explode(",", $v['noticetype']); - foreach ($noticetype as $item) { - DB::table($this->newTable)->insert([ - 'goods_id'=> $v['id'], - 'uid'=> $uid, - 'type'=> $item, - ]); - } - - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzOptionsTableSeeder.php b/database/seeds/YzOptionsTableSeeder.php deleted file mode 100644 index 723be2e3..00000000 --- a/database/seeds/YzOptionsTableSeeder.php +++ /dev/null @@ -1,40 +0,0 @@ -get(); - if($newList->isNotEmpty()){ - echo "yz_options 已经有数据了跳过\n"; - return ; - } - - \Illuminate\Support\Facades\DB::table('yz_options')->insert(array ( - 0 => - array ( - 'id' => 1, - 'option_name' => 'example-plugin', - 'option_value' => 'true', - ), - 1 => - array ( - 'id' => 2, - 'option_name' => 'plugins_enabled', - 'option_value' => '["example-plugin"]', - ), - )); - - - } -} \ No newline at end of file diff --git a/database/seeds/YzPermissionSeeder.php b/database/seeds/YzPermissionSeeder.php deleted file mode 100644 index f5761c39..00000000 --- a/database/seeds/YzPermissionSeeder.php +++ /dev/null @@ -1,18 +0,0 @@ -uniTable = 'yz_uniacid_app'; - } - } - - public function run() - { - - $installed = app('plugins')->getPlugins(); - - $is_plugin = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'test-plugins')->get(); - if ($is_plugin->isNotEmpty()) { - return; - } - - $plugins_enabled = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'plugins_enabled')->pluck("option_value")->first(); - $key = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'key')->pluck('option_value')->first(); - $market_source = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'market_source')->pluck("option_value")->first(); - - - $uniAccount = \Illuminate\Support\Facades\DB::table($this->uniTable)->get(); - - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'test-plugins', - 'option_value' => 'true', - 'enabled' => '1', - ]; - - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'plugins-market', - 'option_value' => 'true', - 'enabled' => '1', - ]; - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'market_source', - 'option_value' => $market_source, - 'enabled' => '1', - ]; - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'key', - 'option_value' => $key, - 'enabled' => '1', - ]; - $i = 4; - foreach ($uniAccount as $u) { - foreach ($installed as $key => $plugin) { - if ($plugin['option_name'] == 'plugins_enabled') { - continue; - } - if ($plugin['option_name'] == 'market_source') { - continue; - } - if ($plugin['option_name'] == 'plugins-market') { - continue; - } - - $data[$i] = [ - 'uniacid' => $u['uniacid'], - 'option_name' => $key, - 'option_value' => 'true', - 'enabled' => 0, - ]; - - if (strpos($plugins_enabled, $key)) { - $data[$i]['enabled'] = 1; - } - $i++; - } - } - - \Illuminate\Support\Facades\DB::table($this->table)->delete(); - - \Illuminate\Support\Facades\DB::table($this->table)->insert($data); - } -} \ No newline at end of file diff --git a/database/seeds/YzStreetSeeder.php b/database/seeds/YzStreetSeeder.php deleted file mode 100644 index c9b11ee6..00000000 --- a/database/seeds/YzStreetSeeder.php +++ /dev/null @@ -1,42 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_street 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'id'=>$v['id'], - 'areaname'=>$v['areaname'], - 'parentid'=>$v['parentid'], - 'level'=>$v['level'] - ]); - } - } - } - -} \ No newline at end of file diff --git a/database/seeds/YzSystemSettingTableSeeder.php b/database/seeds/YzSystemSettingTableSeeder.php deleted file mode 100644 index a48b9618..00000000 --- a/database/seeds/YzSystemSettingTableSeeder.php +++ /dev/null @@ -1,40 +0,0 @@ -table)) { - echo $this->table . " 不存在 跳过\n"; - return; - } - - $table = DB::table($this->table)->where('key', 'global')->first(); - - if (!$table) { - $config['image_extentions'] = ['0' => 'gif', '1' => 'jpg', '2' => 'jpeg', '3' => 'png']; - $config['image_limit'] = 5000; - $config['audio_extentions'] = ['0' => 'mp3', '1' => 'mp4']; - $config['audio_limit'] = 5000; - $config['thumb_width'] = 800; - $config['zip_percentage'] = 100; - - DB::table($this->table)->insert([ - 'key' => 'global', - 'value' => serialize($config), - 'created_at' => time(), - 'updated_at' => time() - ]); - } - } -} diff --git a/database/seeds/YzTemplateMessageTableSeeder.php b/database/seeds/YzTemplateMessageTableSeeder.php deleted file mode 100644 index 008a7944..00000000 --- a/database/seeds/YzTemplateMessageTableSeeder.php +++ /dev/null @@ -1,392 +0,0 @@ -delete(); - - \Illuminate\Support\Facades\DB::table('yz_template_message')->insert(array ( - 0 => - array ( - 'id' => 1, - 'type' => 'system', - 'item' => 'task_process', - 'parent_item' => '', - 'title' => '任务处理通知', - 'template_id_short' => 'OPENTM200605630', - 'template_id' => '', - 'content' => '{{first.DATA}} -任务名称:{{keyword1.DATA}} -通知类型:{{keyword2.DATA}} -{{remark.DATA}}', - 'example' => '您好,您有新的待办任务 -任务名称:张三申请年假3天 -通知类型:待办 -请抽空处理', - 'status' => 0, - ), - 1 => - array ( - 'id' => 2, - 'type' => 'system', - 'item' => 'order_created', - 'parent_item' => '', - 'title' => '订单生成通知', - 'template_id_short' => 'OPENTM205213550', - 'template_id' => '', - 'content' => '{{first.DATA}} -时间:{{keyword1.DATA}} -商品名称:{{keyword2.DATA}} -订单号:{{keyword3.DATA}} -{{remark.DATA}}', - 'example' => '订单生成通知 -时间:2014年7月21日 18:36 -商品名称:苹果 -订单号:007 -订单成功', - 'status' => 0, - ), - 2 => - array ( - 'id' => 3, - 'type' => 'system', - 'item' => 'order_submit_success', - 'parent_item' => '', - 'title' => '订单提交成功通知', - 'template_id_short' => 'OPENTM200746866', - 'template_id' => '', - 'content' => '{{first.DATA}} -店铺:{{keyword1.DATA}} -下单时间:{{keyword2.DATA}} -商品:{{keyword3.DATA}} -金额:{{keyword4.DATA}} -{{remark.DATA}}', - 'example' => '您的订单已提交成功 -店铺:有间便利店 -下单时间:2014-10-31 19:44:51 -商品:软装经典 3份 -金额:¥33.0 -您的订单我们已经收到,配货后将尽快配送~', - 'status' => 0, - ), - 3 => - array ( - 'id' => 4, - 'type' => 'system', - 'item' => 'self_order_submit_success', - 'parent_item' => '', - 'title' => '自提订单提交成功通知', - 'template_id_short' => 'OPENTM201594720', - 'template_id' => '', - 'content' => '{{first.DATA}} -自提码:{{keyword1.DATA}} -商品详情:{{keyword2.DATA}} -提货地址:{{keyword3.DATA}} -提货时间:{{keyword4.DATA}} -{{remark.DATA}}', - 'example' => '您的订单已提交成功! -自提码:140987567809 -商品详情:水杯,1个,2元 -提货地址:朝阳区方恒国际C座宝诚发超市 -提货时间:2014-11-6 12:08 至 2014-11-8 15:00 -客服电话:4008-888-888', - 'status' => 0, - ), - 4 => - array ( - 'id' => 5, - 'type' => 'system', - 'item' => 'order_cancel', - 'parent_item' => '', - 'title' => '订单取消通知', - 'template_id_short' => 'TM00850', - 'template_id' => '', - 'content' => '{{first.DATA}} -订单金额:{{orderProductPrice.DATA}} -商品详情:{{orderProductName.DATA}} -收货信息:{{orderAddress.DATA}} -订单编号:{{orderName.DATA}} -{{remark.DATA}}', - 'example' => '您的京东订单已取消 -订单金额:44.20元 -商品详情:七匹狼真皮鞋包七匹狼真皮鞋包 -收货信息:深圳市宝安区海秀路23号 -订单编号:8976541236598771 -点击“详情”查看详细处理信息,如有疑问可直接回复此公众号联系京东客服。 -详情 >', - 'status' => 0, - ), - 5 => - array ( - 'id' => 6, - 'type' => 'system', - 'item' => 'order_pay_success', - 'parent_item' => '', - 'title' => '订单支付成功通知', - 'template_id_short' => 'OPENTM204987032', - 'template_id' => '', - 'content' => '{{first.DATA}} -订单:{{keyword1.DATA}} -支付状态:{{keyword2.DATA}} -支付日期:{{keyword3.DATA}} -商户:{{keyword4.DATA}} -金额:{{keyword5.DATA}} -{{remark.DATA}}', - 'example' => '您已支付成功订单,请稍后,我们正在为您制作可口的菜品! -订单:街觅 10010 -支付状态:支付成功 -支付日期:2015-05-26 -商户:街觅 -金额:100元 -【街觅】欢迎您的再次到来!', - 'status' => 0, - ), - 6 => - array ( - 'id' => 7, - 'type' => 'system', - 'item' => 'order_deliver', - 'parent_item' => '', - 'title' => '订单发货通知', - 'template_id_short' => 'OPENTM202243318', - 'template_id' => '', - 'content' => '{{first.DATA}} -订单内容:{{keyword1.DATA}} -物流服务:{{keyword2.DATA}} -快递单号:{{keyword3.DATA}} -收货信息:{{keyword4.DATA}} -{{remark.DATA}}', - 'example' => '嗖嗖嗖,您的证照和回执已发货,我们正加速送到您的手上。 -订单内容:证件照 (居民身份证) -物流服务:顺丰即日达 -快递单号:XW5244030005646 -收货信息:陈璐 广东省 广州市 天河区 科韵北路112号 -请您耐心等候。', - 'status' => 0, - ), - 7 => - array ( - 'id' => 8, - 'type' => 'system', - 'item' => 'order_confirm_receipt', - 'parent_item' => '', - 'title' => '订单确认收货通知', - 'template_id_short' => 'OPENTM202314085', - 'template_id' => '', - 'content' => '{{first.DATA}} -订单号:{{keyword1.DATA}} -商品名称:{{keyword2.DATA}} -下单时间:{{keyword3.DATA}} -发货时间:{{keyword4.DATA}} -确认收货时间:{{keyword5.DATA}} -{{remark.DATA}}', - 'example' => '亲:您在我们商城买的宝贝已经确认收货。 -订单号:323232323232 -商品名称:最新款男鞋 -下单时间:2015 01 01 12:00 -发货时间:2015 01 01 14:00 -确认收货时间:2015 01 02 14:00 -感谢您的支持与厚爱。', - 'status' => 0, - ), - 8 => - array ( - 'id' => 9, - 'type' => 'system', - 'item' => 'refund_apply', - 'parent_item' => '', - 'title' => '退款申请通知', - 'template_id_short' => 'TM00431', - 'template_id' => '', - 'content' => '{{first.DATA}} - -退款金额:{{orderProductPrice.DATA}} -商品详情:{{orderProductName.DATA}} -订单编号:{{orderName.DATA}} -{{remark.DATA}}', - 'example' => '您已申请退款,等待商家确认退款信息。 - -退款金额:¥145.25 -商品详情:七匹狼正品 牛皮男士钱包 真皮钱… -订单编号:546787944-55446467-544749 - -可通过电脑进入“QQ网购-帮助中心-投诉退款与举报”了解更多维权信息。 ', - 'status' => 0, - ), - 9 => - array ( - 'id' => 10, - 'type' => 'system', - 'item' => 'refund_success', - 'parent_item' => '', - 'title' => '退款成功通知', - 'template_id_short' => 'TM00430', - 'template_id' => '', - 'content' => '{{first.DATA}} - -退款金额:{{orderProductPrice.DATA}} -商品详情:{{orderProductName.DATA}} -订单编号:{{orderName.DATA}} -{{remark.DATA}}', - 'example' => '您的订单已经完成退款,¥145.25已经退回您的付款账户,请留意查收。 - -退款金额:¥145.25 -商品详情:七匹狼正品 牛皮男士钱包 真皮钱… -订单编号:546787944-55446467-544749', - 'status' => 0, - ), - 10 => - array ( - 'id' => 11, - 'type' => 'system', - 'item' => 'refund_reject', - 'parent_item' => '', - 'title' => '退款申请驳回通知', - 'template_id_short' => 'TM00432', - 'template_id' => '', - 'content' => '{{first.DATA}} - -退款金额:{{orderProductPrice.DATA}} -商品详情:{{orderProductName.DATA}} -订单编号:{{orderName.DATA}} -{{remark.DATA}}', - 'example' => '您的退款申请被商家驳回,可与商家协商沟通。 ->>查看驳回理由 - -退款金额:¥145.25 -商品详情:七匹狼正品 牛皮男士钱包 真皮钱… -订单编号:546787944-55446467-544749 - -可通过电脑进入“QQ网购-帮助中心-投诉退款与举报”了解更多维权信息。', - 'status' => 0, - ), - 11 => - array ( - 'id' => 12, - 'type' => 'system', - 'item' => 'member_upgrade', - 'parent_item' => 'task_process', - 'title' => '会员升级通知', - 'template_id_short' => '', - 'template_id' => '', - 'content' => '', - 'example' => '', - 'status' => 0, - ), - 12 => - array ( - 'id' => 13, - 'type' => 'system', - 'item' => 'recharge_success', - 'parent_item' => '', - 'title' => '充值成功通知', - 'template_id_short' => 'TM00977', - 'template_id' => '', - 'content' => '{{first.DATA}} - -充值金额:{{money.DATA}} -充值方式:{{product.DATA}} -{{remark.DATA}}', - 'example' => '成功充值理财通余额 - -充值金额:1000.00元 -充值方式:工商银行(尾号4593)/pc大额充值', - 'status' => 0, - ), - 13 => - array ( - 'id' => 14, - 'type' => 'system', - 'item' => 'recharge_refund', - 'parent_item' => '', - 'title' => '充值退款通知', - 'template_id_short' => 'TM00004', - 'template_id' => '', - 'content' => '{{first.DATA}} - -退款原因:{{reason.DATA}} -退款金额:{{refund.DATA}} -{{remark.DATA}}', - 'example' => '您好,您对微信影城影票的抢购未成功,已退款。 - -退款原因:未抢购成功 -退款金额:70元 -备注:如有疑问,请致电13912345678联系我们,或回复M来了解详情。', - 'status' => 0, - ), - 14 => - array ( - 'id' => 15, - 'type' => 'system', - 'item' => 'withdraw_submit', - 'parent_item' => '', - 'title' => '提现提交通知', - 'template_id_short' => 'TM00979', - 'template_id' => '', - 'content' => '{{first.DATA}} - -提现金额:{{money.DATA}} -提现时间:{{timet.DATA}} -{{remark.DATA}}', - 'example' => '理财通余额提现申请已提交,资金预计XX月XX日24:00前到账,请注意查收。 - -提现金额:1000.00元 -提现时间:2014-04-02 11:45:08', - 'status' => 0, - ), - 15 => - array ( - 'id' => 16, - 'type' => 'system', - 'item' => 'withdraw_success', - 'parent_item' => '', - 'title' => '提现成功通知', - 'template_id_short' => 'TM00980', - 'template_id' => '', - 'content' => '{{first.DATA}} - -提现金额:{{money.DATA}} -提现时间:{{timet.DATA}} -{{remark.DATA}}', - 'example' => '理财通余额资金已到账 - -提现金额:1000.00元 -到账时间:2014-04-02 11:45:08', - 'status' => 0, - ), - 16 => - array ( - 'id' => 17, - 'type' => 'system', - 'item' => 'withdraw_fail', - 'parent_item' => '', - 'title' => '提现失败通知', - 'template_id_short' => 'TM00981', - 'template_id' => '', - 'content' => '{{first.DATA}} - -提现金额:{{money.DATA}} -提现时间:{{time.DATA}} -{{remark.DATA}} ', - 'example' => '理财通余额提现失败,已将资金退回至理财通余额,点击【详情】查看取出失败原因。如有疑问请联系客服0755-86010333 - -提现金额:1000.00元 -提现时间:2014-04-02 11:45:08', - 'status' => 0, - ), - )); - - - } -} \ No newline at end of file diff --git a/database/seeds/YzUniacidSeeder.php b/database/seeds/YzUniacidSeeder.php deleted file mode 100644 index 892ba7b7..00000000 --- a/database/seeds/YzUniacidSeeder.php +++ /dev/null @@ -1,21 +0,0 @@ -sourceTable) - ->where(['status'=>'1','deleted'=>'0' ]) - ->where('uniacid','>','0') - ->get(); - - if($roles){ - foreach($roles as $role){ - $exists = \Illuminate\Support\Facades\DB::table($this->table) - ->where(['uniacid'=>$role['uniacid'],'name'=>$role['rolename']]) - ->exists(); - if(!$exists){ - \Illuminate\Support\Facades\DB::table($this->table)->insert([ - 'name'=>$role['rolename'], - 'uniacid'=>$role['uniacid'], - 'created_at'=>time(), - 'updated_at'=>time() - ]); - echo "迁移 uniacid:{$role['uniacid']} rolename:{$role['rolename']} 完成\n"; - } - - //@todo insert yz_permission - } - } - - } -} diff --git a/database/seeds/YzpluginSeeder.php b/database/seeds/YzpluginSeeder.php deleted file mode 100644 index 8cd5f841..00000000 --- a/database/seeds/YzpluginSeeder.php +++ /dev/null @@ -1,91 +0,0 @@ -uniTable = 'yz_uniacid_app'; - } - } - - public function run() - { - - $installed = app('plugins')->getPlugins(); - - $is_plugin = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'test-plugins')->get(); - if ($is_plugin->isNotEmpty()) { - return; - } - - $plugins_enabled = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'plugins_enabled')->pluck("option_value")->first(); - $key = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'key')->pluck('option_value')->first(); - $market_source = \Illuminate\Support\Facades\DB::table($this->table)->where('option_name', 'market_source')->pluck("option_value")->first(); - - - $uniAccount = \Illuminate\Support\Facades\DB::table($this->uniTable)->get(); - - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'test-plugins', - 'option_value' => 'true', - 'enabled' => '1', - ]; - - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'plugins-market', - 'option_value' => 'true', - 'enabled' => '1', - ]; - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'market_source', - 'option_value' => $market_source, - 'enabled' => '1', - ]; - $data[] = [ - 'uniacid' => '0', - 'option_name' => 'key', - 'option_value' => $key, - 'enabled' => '1', - ]; - $i = 4; - foreach ($uniAccount as $u) { - foreach ($installed as $key => $plugin) { - if ($plugin['option_name'] == 'plugins_enabled') { - continue; - } - if ($plugin['option_name'] == 'market_source') { - continue; - } - if ($plugin['option_name'] == 'plugins-market') { - continue; - } - - $data[$i] = [ - 'uniacid' => $u['uniacid'], - 'option_name' => $key, - 'option_value' => 'true', - 'enabled' => 0, - ]; - - if (strpos($plugins_enabled, $key)) { - $data[$i]['enabled'] = 1; - } - $i++; - } - } - - \Illuminate\Support\Facades\DB::table($this->table)->delete(); - - \Illuminate\Support\Facades\DB::table($this->table)->insert($data); - } -} \ No newline at end of file diff --git a/database/seeds/YzsaleSeeder.php b/database/seeds/YzsaleSeeder.php deleted file mode 100644 index 13262686..00000000 --- a/database/seeds/YzsaleSeeder.php +++ /dev/null @@ -1,46 +0,0 @@ -oldTable)) { - echo $this->oldTable." 不存在 跳过\n"; - return; - } - $newList = \Illuminate\Support\Facades\DB::table($this->newTable)->get(); - if($newList->isNotEmpty()){ - echo "yz_goods_sale 已经有数据了跳过\n"; - return ; - } - $list = \Illuminate\Support\Facades\DB::table($this->oldTable)->get(); - if($list) { - foreach ($list as $v) { - \Illuminate\Support\Facades\DB::table($this->newTable)->insert([ - 'goods_id'=> $v['id'], - 'max_point_deduct'=> $v['deduct'] * 100, - 'max_balance_deduct'=> $v['deduct2'] * 100, - 'is_sendfree'=> $v['issendfree'], - 'ed_num'=> $v['ednum'], - 'ed_money'=> $v['edmoney'], - 'ed_areas'=> $v['edareas'], - 'point'=> $v['credit'] * 100, - 'bonus'=> $v['redprice'] * 100 - ]); - - } - } - } - -} \ No newline at end of file