调整文章扩展迁移
parent
ca2523a3f8
commit
bc26df2391
|
|
@ -27,6 +27,9 @@ class AddMediaToArticleTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::dropColumns(['media_path']);
|
Schema::table('articles', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
$table->dropColumn('media_path');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class CreateArticleTable extends Migration
|
class AddnumToArticleTable extends Migration
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
|
|
@ -28,6 +28,9 @@ class CreateArticleTable extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::dropColumns(['like_nums', 'read_nums']);
|
Schema::table('articles', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
$table->dropColumn(['like_nums', 'read_nums']);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue