2018_09_28_164306_drop_table_from_furniture.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class DropTableFromFurniture extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::table('admin_users', function (Blueprint $table) {
  15. $table->integer('store_id')->nullable()->default(1)->comment('站点ID');
  16. });
  17. Schema::drop('app_account');
  18. Schema::drop('app_info');
  19. Schema::drop('app_testers');
  20. Schema::drop('base_videos');
  21. Schema::drop('card_banner');
  22. Schema::drop('card_setting');
  23. Schema::drop('card_user_honor');
  24. Schema::drop('card_user_info');
  25. Schema::drop('card_user_progress');
  26. Schema::drop('card_user_project');
  27. Schema::drop('card_user_trend');
  28. Schema::drop('cp_company_info');
  29. Schema::drop('crm_leads');
  30. Schema::drop('menu_info');
  31. Schema::drop('news_category');
  32. Schema::drop('s1_cart_info');
  33. Schema::drop('s1_cate_attr');
  34. Schema::drop('s1_comment_info');
  35. Schema::drop('s1_goods_cate');
  36. Schema::drop('s1_goods_images');
  37. Schema::drop('s1_goods_info');
  38. Schema::drop('s1_order_goods');
  39. Schema::drop('s1_order_info');
  40. Schema::drop('s1_order_refund');
  41. Schema::drop('s1_user_favorite');
  42. Schema::drop('sw_agent_cost_price');
  43. Schema::drop('sw_agent_info');
  44. Schema::drop('sw_agent_recharge');
  45. Schema::drop('sw_article_info');
  46. Schema::drop('sw_case_categories');
  47. Schema::drop('sw_case_category_relations');
  48. Schema::drop('sw_cases_agent_hidden');
  49. Schema::drop('sw_cases_category');
  50. Schema::drop('sw_cases_info');
  51. Schema::drop('sw_code_info');
  52. Schema::drop('sw_coupon_info');
  53. Schema::drop('sw_designer_info');
  54. Schema::drop('sw_help_category');
  55. Schema::drop('sw_help_info');
  56. Schema::drop('sw_order_info');
  57. Schema::drop('template_agent_hidden');
  58. Schema::drop('template_category');
  59. Schema::drop('template_category_relation');
  60. Schema::drop('template_info');
  61. Schema::drop('template_price');
  62. Schema::drop('user_access');
  63. Schema::drop('user_address');
  64. Schema::drop('user_app');
  65. Schema::drop('user_coupon');
  66. Schema::drop('user_info');
  67. Schema::drop('user_roles');
  68. Schema::drop('user_template');
  69. Schema::drop('wx_article_category');
  70. Schema::drop('wx_article_info');
  71. Schema::drop('wx_coupon_info');
  72. Schema::drop('wx_level_info');
  73. Schema::drop('wx_user_address');
  74. Schema::drop('wx_user_coupon');
  75. Schema::drop('wx_user_info');
  76. Schema::drop('xcx_sets');
  77. }
  78. /**
  79. * Reverse the migrations.
  80. *
  81. * @return void
  82. */
  83. public function down()
  84. {
  85. Schema::table('admin_users',function (Blueprint $table)
  86. {
  87. //
  88. });
  89. }
  90. }