You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
690 B

  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class Shares extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('shares', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->unsignedInteger('database_id');
  16. $table->datetime('expires_at')->nullable();
  17. $table->string('token', 30);
  18. $table->datetime('created_at');
  19. });
  20. }
  21. /**
  22. * Reverse the migrations.
  23. *
  24. * @return void
  25. */
  26. public function down()
  27. {
  28. Schema::drop('shares');
  29. }
  30. }