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,10 +9,10 @@ class UpdateAPIKeyColumnNames extends Migration
|
|||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up()
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('api_keys', function (Blueprint $table) {
|
||||
$table->dropForeign('api_keys_user_foreign')->dropIndex('api_keys_user_foreign');
|
||||
$table->dropForeign(['user']);
|
||||
|
||||
$table->renameColumn('user', 'user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
|
@ -22,10 +22,10 @@ class UpdateAPIKeyColumnNames extends Migration
|
|||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down()
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('api_keys', function (Blueprint $table) {
|
||||
$table->dropForeign('api_keys_user_id_foreign')->dropIndex('api_keys_user_id_foreign');
|
||||
$table->dropForeign(['user_id']);
|
||||
|
||||
$table->renameColumn('user_id', 'user');
|
||||
$table->foreign('user')->references('id')->on('users');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue