Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5b0a43928
commit
a4f3254ebd
3 files changed
+51
-1
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?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('suppliers', function (Blueprint $table) {
|
||||
$table->string('address')->nullable()->after('name');
|
||||
$table->string('phone')->nullable()->after('address');
|
||||
$table->string('email')->nullable()->after('phone');
|
||||
$table->string('website')->nullable()->after('email');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('suppliers', function (Blueprint $table) {
|
||||
$table->dropColumn(['address', 'phone', 'email', 'website']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user