12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- // create_cruds_table
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateCrudsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('cruds', function (Blueprint $table) {
- $table->increments('id'); //индекс
- $table->string('title'); //название
- $table->string('post'); //описание
- $table->date('date'); //дата провидения
- $table->string('type'); //тип мероприятия
- $table->string('last_modifit'); //последний изменивший
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('cruds');
- }
- }
|