| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class ChangeProcurementsTimeColumn extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('procurements', function (Blueprint $table) {
- $table->dropColumn('time');
- $table->timestamp('deadline')->nullable()->comment('接单倒计时');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('procurements', function (Blueprint $table) {
- $table->timestamp('time')->nullable()->comment('接单倒计时');
- $table->dropColumn('deadline');
- });
- }
- }
|