FleetCart/app/Scaffold/Module/stubs/migrations/create-table-migration.stub
2023-06-11 13:14:03 +01:00

32 lines
684 B
Plaintext

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Create$PLURAL_ENTITY_NAME$Table extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('$PLURAL_SNAKE_CASE_ENTITY_NAME$', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('$PLURAL_SNAKE_CASE_ENTITY_NAME$');
}
}