feat: add btn text
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('announcements', function (Blueprint $table) {
|
||||
$table->string('button_text')->nullable()->after('link');
|
||||
});
|
||||
|
||||
Schema::table('app_versions', function (Blueprint $table) {
|
||||
$table->string('button_text')->nullable()->after('link');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('announcements', function (Blueprint $table) {
|
||||
$table->dropColumn('button_text');
|
||||
});
|
||||
|
||||
Schema::table('app_versions', function (Blueprint $table) {
|
||||
$table->dropColumn('button_text');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user