ufutx.dma/database/migrations/2024_02_29_174706_change_table_activity.php
2026-03-04 14:42:40 +08:00

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');
});
}
};