2018_09_28_164306_drop_table_from_furniture.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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('crm_leads');
  29. Schema::drop('menu_info');
  30. Schema::drop('news_category');
  31. Schema::drop('s1_cart_info');
  32. Schema::drop('s1_cate_attr');
  33. Schema::drop('s1_comment_info');
  34. Schema::drop('s1_goods_cate');
  35. Schema::drop('s1_goods_images');
  36. Schema::drop('s1_goods_info');
  37. Schema::drop('s1_order_goods');
  38. Schema::drop('s1_order_info');
  39. Schema::drop('s1_order_refund');
  40. Schema::drop('s1_user_favorite');
  41. Schema::drop('sw_agent_cost_price');
  42. Schema::drop('sw_agent_info');
  43. Schema::drop('sw_agent_recharge');
  44. Schema::drop('sw_article_info');
  45. Schema::drop('sw_case_categories');
  46. Schema::drop('sw_case_category_relations');
  47. Schema::drop('sw_cases_agent_hidden');
  48. Schema::drop('sw_cases_category');
  49. Schema::drop('sw_cases_info');
  50. Schema::drop('sw_code_info');
  51. Schema::drop('sw_coupon_info');
  52. Schema::drop('sw_designer_info');
  53. Schema::drop('sw_help_category');
  54. Schema::drop('sw_help_info');
  55. Schema::drop('sw_order_info');
  56. Schema::drop('template_agent_hidden');
  57. Schema::drop('template_category');
  58. Schema::drop('template_category_relation');
  59. Schema::drop('template_info');
  60. Schema::drop('template_price');
  61. Schema::drop('user_access');
  62. Schema::drop('user_address');
  63. Schema::drop('user_app');
  64. Schema::drop('user_coupon');
  65. Schema::drop('user_info');
  66. Schema::drop('user_roles');
  67. Schema::drop('user_template');
  68. Schema::drop('wx_article_category');
  69. Schema::drop('wx_article_info');
  70. Schema::drop('wx_coupon_info');
  71. Schema::drop('wx_level_info');
  72. Schema::drop('wx_user_address');
  73. Schema::drop('wx_user_coupon');
  74. Schema::drop('wx_user_info');
  75. Schema::drop('xcx_sets');
  76. }
  77. /**
  78. * Reverse the migrations.
  79. *
  80. * @return void
  81. */
  82. public function down()
  83. {
  84. Schema::table('admin_users',function (Blueprint $table)
  85. {
  86. //
  87. });
  88. }
  89. }