45 lines
969 B
PHP
45 lines
969 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateSurvey1 extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('survey_1', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('lastname', 50);
|
|
$table->string('firstname', 50);
|
|
$table->string('city', 20);
|
|
$table->string('email');
|
|
$table->string('phone');
|
|
$table->text('question1');
|
|
$table->text('question2');
|
|
$table->text('question3');
|
|
$table->text('question4');
|
|
$table->text('question5');
|
|
$table->text('question6');
|
|
$table->boolean('support');
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('survey_1');
|
|
}
|
|
}
|