added database migrations

This commit is contained in:
Jan Felix Wiebe 2019-11-15 21:57:07 +01:00
parent 2182378727
commit 4f6a979c44
3 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateContainersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('containers', function (Blueprint $table) {
$table->bigIncrements('cid');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('container');
}
}