possible fix?

This commit is contained in:
1day2die 2023-05-08 12:26:49 +02:00
parent 9804149beb
commit 98a894fd1e
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,8 @@ class CreateTicketSettings extends SettingsMigration
$table_exists = DB::table('settings_old')->exists();
// Get the user-set configuration values from the old table.
$this->migrator->add('ticket.enabled', $table_exists ? $this->getOldValue('SETTINGS::TICKET:ENABLED') : 'all');
$this->migrator->add('ticket.enabled', $table_exists ? $this->getOldValue('SETTINGS::TICKET:ENABLED') : 'true');
$this->migrator->add('ticket.notify', $table_exists ? $this->getOldValue('SETTINGS::TICKET:NOTIFY') : 'all');
}
public function down(): void

View file

@ -6,6 +6,7 @@ return new class extends SettingsMigration
{
public function up(): void
{
$this->migrator->delete('ticket.notify');
$this->migrator->add('ticket.information', "Can't start your server? Need an additional port? Do you have any other questions? Let us know by opening a ticket.");
}
};