Advertisement
tomjerry741

Contacts

Nov 26th, 2020 (edited)
1,521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Database\Schema\Blueprint;
  5.  
  6. class CreateContactsTable extends Migration
  7. {
  8.     /**
  9.      * Run the migrations.
  10.      */
  11.     public function up()
  12.     {
  13.         Schema::create('contacts', function (Blueprint $table) {
  14.             $table->engine = 'InnoDB';
  15.             $table->increments('id');
  16.             $table->string('locale')->nullable();
  17.             $table->string('name')->nullable();
  18.             $table->string('email');
  19.             $table->text('message')->nullable();
  20.             $table->timestamps();
  21.         });
  22.     }
  23.  
  24.     /**
  25.      * Reverse the migrations.
  26.      */
  27.     public function down()
  28.     {
  29.         Schema::drop('contacts');
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement