Files
izyim/database/migrations/2018_11_06_174400_create_contacts_table.php
T
2019-01-23 23:53:20 +08:00

38 lines
830 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->string('type');
$table->string('reference_id');
$table->string('name');
$table->string('designation');
$table->string('contact');
$table->string('email');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contacts');
}
}