Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- class CreateContactsTable extends Migration
- {
- /**
- * Run the migrations.
- */
- public function up()
- {
- Schema::create('contacts', function (Blueprint $table) {
- $table->engine = 'InnoDB';
- $table->increments('id');
- $table->string('locale')->nullable();
- $table->string('name')->nullable();
- $table->string('email');
- $table->text('message')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down()
- {
- Schema::drop('contacts');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement