Files
izyim/database/migrations/2018_11_06_174400_create_contacts_table.php
Omair Saleh 0e5f2939e3 large commit
2019-10-05 13:09:26 +08:00

39 lines
925 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContactsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contacts', function (Blueprint $table) {
$table->increments('id');
$table->integer('type');
$table->integer('reference_id');
$table->string('name');
$table->string('designation')->nullable();
$table->string('contact')->nullable();
$table->string('email')->nullable();
$table->string('wechat_id', 80)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contacts');
}
}