| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateUploadsTableZgldh extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- if (!Schema::hasTable('uploads')) {
- Schema::create('uploads', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name')->nullable();
- $table->string('description')->nullable();
- $table->string('disk');
- $table->string('path');
- $table->integer('size');
- $table->integer('user_id')->nullable();
- $table->timestamps();
- });
- }
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('uploads');
- }
- }
|