mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update migration to add pgsql support
This commit is contained in:
parent
94c88fdd74
commit
8e640c2425
1 changed files with 0 additions and 4 deletions
|
@ -21,10 +21,6 @@ class UpdateStatusVisibilityDefaults extends Migration
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'pgsql':
|
case 'pgsql':
|
||||||
DB::statement("ALTER TYPE visibility_enum RENAME TO visibility_enum_old;");
|
|
||||||
DB::statement("CREATE TYPE visibility_enum AS ENUM('public','unlisted','private','direct', 'draft');");
|
|
||||||
DB::statement("ALTER TABLE statuses ALTER COLUMN visibility TYPE visibility_enum USING visibility::text::visibility_enum;");
|
|
||||||
DB::statement("DROP TYPE visibility_enum_old;");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue