Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class TBKCREATEFruitsTABLE extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('fruits', function (Blueprint $table) {
  17. $table->increments('id');
  18. $table->unsignedInteger('test');
  19. $table->timestamp('created_at')->nullable();
  20. $table->timestamp('updated_at')->nullable();
  21.  
  22. $table->foreign('id')->references('email')->on('password_resets')->onUpdate('cascade')->onDelete('cascade');
  23.  
  24. $table->(['']);
  25.  
  26.  
  27. });
  28. }
  29.  
  30. /**
  31. * Reverse the migrations.
  32. *
  33. * @return void
  34. */
  35. public function down()
  36. {
  37. Schema::dropIfExists('fruits');
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement