35 lines
836 B
PHP
35 lines
836 B
PHP
<?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('activity', function (Blueprint $table) {
|
|
$table->text('qr_code')->nullable()->comment('活动二维码')->after('describe');
|
|
$table->text('qr_code_url')->nullable()->comment('活动详情地址')->after('qr_code');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('activity', function (Blueprint $table) {
|
|
$table->dropColumn('qr_code');
|
|
$table->dropColumn('qr_code_url');
|
|
});
|
|
}
|
|
};
|