2022_06_03_215306_alter_immerse2_table.php
958 Bytes
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterImmerse2Table extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('immerse', function (Blueprint $table) {
$table->string('upload_file')->after('type')->comment('上传资源路径');
$table->string('origin_video_url')->after('size')->comment('原始视频路径');
$table->string('origin_image_url')->after('origin_video_url')->comment('原始图片路径');
$table->string('tags')->after('comment')->default('')->comment('标签');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropColumns('immerse', ['upload_file', 'origin_video_url', 'origin_image_url', 'tags']);
}
}