adrema/database/migrations/2017_12_25_231219_create_wa...

32 lines
574 B
PHP
Raw Permalink Normal View History

2020-04-10 20:32:12 +02:00
<?php
2020-04-12 00:26:44 +02:00
use Illuminate\Database\Migrations\Migration;
2022-03-11 20:19:17 +01:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2020-04-10 20:32:12 +02:00
2020-04-12 00:26:44 +02:00
class CreateWaysTable extends Migration
2020-04-10 20:32:12 +02:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2020-04-12 00:26:44 +02:00
Schema::create('ways', function (Blueprint $table) {
2021-04-10 02:57:10 +02:00
$table->id();
$table->string('title');
2020-04-10 20:32:12 +02:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2020-04-12 00:26:44 +02:00
Schema::dropIfExists('ways');
2020-04-10 20:32:12 +02:00
}
}