瀏覽代碼

possible fix?

1day2die 2 年之前
父節點
當前提交
98a894fd1e

+ 2 - 1
database/settings/2023_02_04_181156_create_ticket_settings.php

@@ -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

+ 1 - 0
database/settings/2023_05_07_195343_ticket_information.php

@@ -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.");
     }
 };