mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-10 06:00:45 +00:00
Fix migration
This commit is contained in:
parent
f1bfcc9528
commit
bad627119c
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
return new class extends Migration
|
return new class extends Migration
|
||||||
|
@ -12,7 +13,9 @@ return new class extends Migration
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::table('group_posts', function (Blueprint $table) {
|
Schema::table('group_posts', function (Blueprint $table) {
|
||||||
|
if (DB::getDriverName() === 'sqlite') {
|
||||||
$table->dropUnique(['status_id']);
|
$table->dropUnique(['status_id']);
|
||||||
|
}
|
||||||
$table->dropColumn('status_id');
|
$table->dropColumn('status_id');
|
||||||
$table->dropColumn('reply_child_id');
|
$table->dropColumn('reply_child_id');
|
||||||
$table->dropColumn('in_reply_to_id');
|
$table->dropColumn('in_reply_to_id');
|
||||||
|
|
Loading…
Reference in a new issue