PostgreSQL Support (#4486)

Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
This commit is contained in:
Lance Pioch 2022-11-25 15:29:04 -05:00 committed by GitHub
parent 21613fa602
commit 3bf5a71802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
223 changed files with 912 additions and 1052 deletions

View file

@ -9,11 +9,10 @@ class AdjustColumnNames extends Migration
/**
* Run the migrations.
*/
public function up()
public function up(): void
{
Schema::table('service_options', function (Blueprint $table) {
$table->dropForeign('service_options_parent_service_foreign');
$table->dropIndex('service_options_parent_service_foreign');
$table->dropForeign(['parent_service']);
$table->renameColumn('parent_service', 'service_id');
$table->foreign('service_id')->references('id')->on('services');
@ -23,11 +22,11 @@ class AdjustColumnNames extends Migration
/**
* Reverse the migrations.
*/
public function down()
public function down(): void
{
Schema::table('service_options', function (Blueprint $table) {
$table->dropForeign('service_options_service_id_foreign');
$table->dropIndex('service_options_service_id_foreign');
$table->dropForeign(['service_id']);
$table->dropIndex(['service_id']);
$table->renameColumn('service_id', 'parent_service');
$table->foreign('parent_service')->references('id')->on('services');