mivita/database/migrations/2020_10_15_151059_create_homeparties_table.php
2020-10-16 16:18:00 +02:00

44 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHomepartiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('homeparties', function (Blueprint $table) {
$table->increments('id');
$table->date('date');
$table->string('name')->nullable();
$table->string('place')->nullable();
$table->text('description')->nullable();
$table->unsignedTinyInteger('pos')->default(0);
$table->unsignedTinyInteger('completed')->default(0);
$table->unsignedTinyInteger('status')->default(0);
$table->boolean('order_to')->default(true);
$table->boolean('active')->default(false);
$table->boolean('default')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('homeparties');
}
}