|
@@ -15,7 +15,6 @@ 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']);
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -27,7 +26,6 @@ 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']);
|
|
|
});
|
|
|
}
|
|
|
};
|