2020_04_28_072741_create_update_auth.php 842 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateUpdateAuth extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. if (!Schema::hasTable('yz_update_auth')) {
  15. Schema::create('yz_update_auth', function (Blueprint $table) {
  16. $table->integer('id', true);
  17. $table->string('code', 50)->nullable();
  18. $table->integer('created_at')->nullable();
  19. $table->integer('updated_at')->nullable();
  20. $table->integer('deleted_at')->nullable();
  21. });
  22. }
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. //
  32. }
  33. }