|
@@ -15,6 +15,7 @@ return new class extends Migration
|
|
|
$table->integer("folder_id")->default(0)->index()->after("title");
|
|
|
$table->boolean("is_latest_version")->default(false)->after("version");
|
|
|
$table->index(['object_type', 'object_id']);
|
|
|
+ $table->index(['company_id']);
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -26,6 +27,7 @@ return new class extends Migration
|
|
|
Schema::table('files', function (Blueprint $table) {
|
|
|
$table->dropColumn(['folder_id', 'is_latest_version']);
|
|
|
$table->dropIndex(['object_type', 'object_id']);
|
|
|
+ $table->dropColumn(['company_id']);
|
|
|
});
|
|
|
}
|
|
|
};
|