50 lines
1.3 KiB
PHP
50 lines
1.3 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->string('token')->nullable();
|
|
$table->boolean('token_active')->default(true);
|
|
|
|
$table->text('settings')->nullable();
|
|
$table->text('order')->nullable();
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('homeparties');
|
|
}
|
|
}
|