Mercurial > borealpoint
comparison database/migrations/2025_08_29_004806_create_clients_table.php @ 2:90296614b7e2 default tip
Adding in the base for the clients table
| author | luka |
|---|---|
| date | Thu, 28 Aug 2025 20:55:40 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:8971e685366b | 2:90296614b7e2 |
|---|---|
| 1 <?php | |
| 2 | |
| 3 use Illuminate\Database\Migrations\Migration; | |
| 4 use Wizard\Framework\Database\MyBlueprint as Blueprint; | |
| 5 use Wizard\Framework\Database\MySchema as Schema; | |
| 6 | |
| 7 return new class extends Migration | |
| 8 { | |
| 9 /** | |
| 10 * Run the migrations. | |
| 11 */ | |
| 12 public function up(): void | |
| 13 { | |
| 14 Schema::create('clients', function (Blueprint $table) { | |
| 15 $table->baseColumns(); | |
| 16 $table->string('name'); | |
| 17 $table->string('email')->nullable(); | |
| 18 $table->string('phone_number')->nullable(); | |
| 19 $table->string('address')->nullable(); | |
| 20 $table->text('notes')->nullable(); | |
| 21 }); | |
| 22 } | |
| 23 | |
| 24 /** | |
| 25 * Reverse the migrations. | |
| 26 */ | |
| 27 public function down(): void | |
| 28 { | |
| 29 Schema::dropIfExists('clients'); | |
| 30 } | |
| 31 }; |
