|
@@ -14,11 +14,6 @@ class AddReblogOfIdIndexToStatusesTable extends Migration
|
|
public function up()
|
|
public function up()
|
|
{
|
|
{
|
|
Schema::table('statuses', function (Blueprint $table) {
|
|
Schema::table('statuses', function (Blueprint $table) {
|
|
- $sc = Schema::getConnection()->getDoctrineSchemaManager();
|
|
|
|
- if(array_key_exists('statuses_in_reply_or_reblog_index', $sc)) {
|
|
|
|
- $table->dropIndex('statuses_in_reply_or_reblog_index');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
$table->index('in_reply_to_id');
|
|
$table->index('in_reply_to_id');
|
|
$table->index('reblog_of_id');
|
|
$table->index('reblog_of_id');
|
|
});
|
|
});
|
|
@@ -32,7 +27,8 @@ class AddReblogOfIdIndexToStatusesTable extends Migration
|
|
public function down()
|
|
public function down()
|
|
{
|
|
{
|
|
Schema::table('statuses', function (Blueprint $table) {
|
|
Schema::table('statuses', function (Blueprint $table) {
|
|
- //
|
|
|
|
|
|
+ $table->dropIndex('statuses_in_reply_to_id_index');
|
|
|
|
+ $table->dropIndex('statuses_reblog_of_id_index');
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|