PostgreSQL Support (#4486)
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
This commit is contained in:
parent
21613fa602
commit
3bf5a71802
223 changed files with 912 additions and 1052 deletions
|
@ -9,11 +9,10 @@ class AdjustColumnNamesForServicePacks extends Migration
|
|||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up()
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('service_packs', function (Blueprint $table) {
|
||||
$table->dropForeign('service_packs_option_foreign');
|
||||
$table->dropIndex('service_packs_option_foreign');
|
||||
$table->dropForeign(['option']);
|
||||
|
||||
$table->renameColumn('option', 'option_id');
|
||||
$table->foreign('option_id')->references('id')->on('service_options');
|
||||
|
@ -23,11 +22,11 @@ class AdjustColumnNamesForServicePacks extends Migration
|
|||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down()
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('service_packs', function (Blueprint $table) {
|
||||
$table->dropForeign('service_packs_option_id_foreign');
|
||||
$table->dropIndex('service_packs_option_id_foreign');
|
||||
$table->dropForeign(['option_id']);
|
||||
$table->dropIndex(['option_id']);
|
||||
|
||||
$table->renameColumn('option_id', 'option');
|
||||
$table->foreign('option')->references('id')->on('service_options');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue