view publishable/stubs/migration.create.stub @ 5:f282c6ef1671

better support for server side tables
author luka
date Tue, 19 Aug 2025 22:15:16 -0400
parents 84c75d9d90be
children
line wrap: on
line source

<?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 }}');
    }
};