- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
database/migrations/2021_10_06_103305_create_folders_table.php
r6b95845 rc6b84df 5 5 use Illuminate\Support\Facades\Schema; 6 6 7 class Create DocumentsTable extends Migration7 class CreateFoldersTable extends Migration 8 8 { 9 9 /** … … 14 14 public function up() 15 15 { 16 Schema::create(' documents', function (Blueprint $table) {16 Schema::create('folders', function (Blueprint $table) { 17 17 $table->bigIncrements('id'); 18 18 $table->string("arch_id")->unique(); 19 19 $table->string("name"); 20 $table->text("description"); 20 $table->text("note")->nullable(); 21 $table->string("location"); 21 22 $table->integer("user_id")->unsigned(); 22 23 $table->integer("department_id")->unsigned(); 23 $table->boolean("is_important")->default( true);24 $table->boolean("is_important")->default(false); 24 25 $table->timestamps(); 25 26 … … 36 37 public function down() 37 38 { 38 Schema::dropIfExists(' documents');39 Schema::dropIfExists('folders'); 39 40 } 40 41 }
Note:
See TracChangeset
for help on using the changeset viewer.