igfs/kernel/console/migrations/stubs/create.stub
2024-10-23 16:16:47 +03:00

33 lines
627 B
Plaintext

<?php
use core\App;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class DummyClass extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
App::$db->schema->create('DummyTable', function (Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
App::$db->schema->dropIfExists('DummyTable');
}
}