Mercurial > packages > framework
comparison publishable/stubs/migration.create.stub @ 4:84c75d9d90be
Changing usage to be bootstrap 5, not everything is reviewed but it's been started
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:33:35 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 3:e107504fa22c | 4:84c75d9d90be |
|---|---|
| 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('{{ table }}', function (Blueprint $table) { | |
| 15 $table->baseColumns(); | |
| 16 }); | |
| 17 } | |
| 18 | |
| 19 /** | |
| 20 * Reverse the migrations. | |
| 21 */ | |
| 22 public function down(): void | |
| 23 { | |
| 24 Schema::dropIfExists('{{ table }}'); | |
| 25 } | |
| 26 }; |
