添加友情链接是否iframe

dev
vine_liutk 2023-05-22 17:33:35 +08:00
parent dd6ff0f99c
commit 3cde3c221c
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('friend_links', function (Blueprint $table) {
//
$table->unsignedInteger('is_iframe')->default(0)->comment('是否iframe打开');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('friend_links', function (Blueprint $table) {
//
$table->dropColumn('is_iframe');
});
}
};