akaunting/database/migrations/2017_09_01_000000_create_companies_table.php

34 lines
688 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('companies', function (Blueprint $table) {
$table->increments('id');
2019-11-16 10:21:14 +03:00
$table->string('domain')->nullable();
2017-10-07 23:52:34 +03:00
$table->boolean('enabled')->default(1);
2017-09-14 22:21:00 +03:00
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('companies');
}
}