Mercurial > packages > framework
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/publishable/stubs/migration.create.stub Tue Aug 19 20:33:35 2025 -0400 @@ -0,0 +1,26 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Wizard\Framework\Database\MyBlueprint as Blueprint; +use Wizard\Framework\Database\MySchema as Schema; + +return new class extends Migration +{ + /** + * Run the migrations. + */ + public function up(): void + { + Schema::create('{{ table }}', function (Blueprint $table) { + $table->baseColumns(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('{{ table }}'); + } +};
