initial commit
This commit is contained in:
commit
3f64f4a49a
221 files changed
+26665
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Migrations;
|
||||
|
||||
use Rsgrinko\Proton\Database\Migration;
|
||||
use Rsgrinko\Proton\Database\Schema\Blueprint;
|
||||
|
||||
/**
|
||||
* {{class}}.
|
||||
*/
|
||||
final class {{class}} extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$this->create('{{table}}', function (Blueprint $table): void {
|
||||
$table->id();
|
||||
$table->string('title', 191);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Откат обязан честно отменять up(): это проверяется тестом, который
|
||||
* накатывает всё, откатывает и накатывает снова.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
$this->drop('{{table}}');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user