Mercurial > borealpoint
comparison stubs/migration.create.stub @ 0:9d7dcd54c677
Initial Commit and package setup
| author | luka |
|---|---|
| date | Sat, 23 Aug 2025 22:20:51 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9d7dcd54c677 |
|---|---|
| 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 }; |
