Add (rss post): domain

This commit is contained in:
2023-11-23 21:30:33 +08:00
parent e4eb51b2b7
commit 0a1987f593
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('rss_posts', function (Blueprint $table) {
$table->string('post_domain')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('rss_posts', function (Blueprint $table) {
$table->dropColumn('post_domain');
});
}
};