mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 10:32:31 +01:00
database: fix migrations with postgres
This commit is contained in:
parent
f68c46b0a0
commit
2f15d94957
@ -12,9 +12,9 @@ return new class () extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->renameColumn('daemonListen', 'listen_port_http');
|
||||
$table->renameColumn('daemonSFTP', 'listen_port_sftp');
|
||||
$table->renameColumn('daemonBase', 'daemon_base');
|
||||
$table->renameColumn('`daemonListen`', 'listen_port_http');
|
||||
$table->renameColumn('`daemonSFTP`', 'listen_port_sftp');
|
||||
$table->renameColumn('`daemonBase`', 'daemon_base');
|
||||
});
|
||||
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
@ -42,9 +42,9 @@ return new class () extends Migration {
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->renameColumn('listen_port_http', 'daemonListen');
|
||||
$table->renameColumn('listen_port_sftp', 'daemonSFTP');
|
||||
$table->renameColumn('daemon_base', 'daemonBase');
|
||||
$table->renameColumn('listen_port_http', '`daemonListen`');
|
||||
$table->renameColumn('listen_port_sftp', '`daemonSFTP`');
|
||||
$table->renameColumn('daemon_base', '`daemonBase`');
|
||||
|
||||
$table->dropColumn('public_port_http');
|
||||
$table->dropColumn('public_port_sftp');
|
||||
|
Loading…
Reference in New Issue
Block a user