feat: add cms_type and WordPress credential fields to sites
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?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('sites', function (Blueprint $table) {
|
||||
$table->string('cms_type')->default('custom')->after('description');
|
||||
$table->string('wp_username')->nullable()->after('cms_type');
|
||||
$table->string('wp_app_password')->nullable()->after('wp_username');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('sites', function (Blueprint $table) {
|
||||
$table->dropColumn(['cms_type', 'wp_username', 'wp_app_password']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user