Advertisement
SpykeRel04D

Untitled

Nov 10th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateContactsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('contacts', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->timestamps();
  17. $table->string('first_name');
  18. $table->string('last_name');
  19. $table->string('email');
  20. $table->string('job_title');
  21. $table->string('city');
  22. $table->string('country');
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::dropIfExists('contacts');
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement