2017-12-07 23:04:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
2017-12-12 05:28:49 +00:00
|
|
|
class CreateTableSites extends Migration
|
2017-12-07 23:04:02 +00:00
|
|
|
{
|
2018-04-10 11:23:13 +00:00
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2017-12-12 05:28:49 +00:00
|
|
|
Schema::create('sites', function (Blueprint $table) {
|
2018-04-10 11:23:13 +00:00
|
|
|
$table->increments('id');
|
|
|
|
$table->timestamps();
|
|
|
|
$table->string('url');
|
|
|
|
$table->string('devurl')->nullable();
|
|
|
|
$table->string('name');
|
|
|
|
$table->json('address')->nullable();
|
|
|
|
$table->string('description')->nullable();
|
|
|
|
$table->string('email');
|
|
|
|
$table->string('phone')->nullable();
|
|
|
|
$table->string('fax')->nullable();
|
|
|
|
$table->string('logo')->nullable();
|
|
|
|
$table->string('favicon')->nullable();
|
|
|
|
$table->string('theme');
|
|
|
|
});
|
|
|
|
}
|
2017-12-07 23:04:02 +00:00
|
|
|
|
2018-04-10 11:23:13 +00:00
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('sites');
|
|
|
|
}
|
|
|
|
}
|