Skip to content

Commit

Permalink
Updated required minimum database versions. Refactored database versi…
Browse files Browse the repository at this point in the history
…on checks and added them to the installer.
  • Loading branch information
NiklasSchmitt committed Jul 4, 2024
1 parent ee02bb0 commit 8e6dc19
Show file tree
Hide file tree
Showing 103 changed files with 445 additions and 92 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 7.1.1 2024-??-??
- 2024-07-02 Updated required minimum database versions. Refactored database version checks and added them to the installer.
- 2024-06-21 Added functionality to use user fullname for mention label.
- 2024-06-20 Fixed output of last mention date in dashboard widget "Last mentions".
- 2024-06-20 Standard templates can now have multiple template types.
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/ar_SA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.0747494660752423;
$Self->{Completeness} = 0.0747371879106439;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -4482,6 +4482,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'تحتوي قاعدة البيانات على بيانات حالياً - يفترض أن تكون فارغه!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/bg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y - %T';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.196484310826351;
$Self->{Completeness} = 0.196452036793692;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4479,6 +4479,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'Базата данни вече съдържа данни - тя трябва да е празна.',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/ca.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.205684245112535;
$Self->{Completeness} = 0.205650459921156;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -4479,6 +4479,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => '',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/cs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.243962543124692;
$Self->{Completeness} = 0.24392247043364;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4485,6 +4485,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'Databáze obsahuje data - měla by být prázdná.',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/da.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.345161820272712;
$Self->{Completeness} = 0.345105124835742;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -4481,6 +4481,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'Databasen indeholder allerede data - den burde være tom!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'Fejl: Sørg for at din database accepterer pakker over %s MB i størrelse (I øjeblikket accepterer den kun pakker op til %s MB). Tilpas max_allowed_packet indstillingen i din database for at undgå fejl.',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/de.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.991785772958765;
$Self->{Completeness} = 0.991787122207622;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4479,6 +4479,8 @@ sub Data {
'Kann nicht zur Datenbank verbinden, Perl-Modul DBD::%s nicht installiert!',
'Can\'t connect to database, read comment!' => 'Kann nicht zur Datenbank verbinden, bitte Hinweis lesen!',
'Database already contains data - it should be empty!' => 'Die Datenbank enthält bereits Daten, obwohl sie leer sein sollte!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'Fehler: Sie haben eine falsche Datenbankversion installiert (%s). Sie benötigen mindestens Version %s!',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'Fehler: Bitte stellen Sie sicher, dass Ihre Datenbank Pakete größer als %s MB akzeptiert (derzeit werden nur Pakete bis zu einer Größe von %s MB akzeptiert). Bitte passen Sie die Einstellung max_allowed_packet Ihrer Datenbank an, um Fehler zu vermeiden.',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/el.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.137013307047807;
$Self->{Completeness} = 0.136990801576873;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4484,6 +4484,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'Η βάση περιέχει ήδη δεδομένα - θα πρέπει να παραμείνει κενή!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/en_CA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sub Data {
$Self->{DateFormatShort} = '%Y-%M-%D';
$Self->{DateInputFormat} = '%Y-%M-%D';
$Self->{DateInputFormatLong} = '%Y-%M-%D - %T';
$Self->{Completeness} = 0.00262855265319533;
$Self->{Completeness} = 0.0026281208935611;

# csv separator
$Self->{Separator} = ',';
Expand Down Expand Up @@ -4484,6 +4484,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => '',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/en_GB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.603581402989979;
$Self->{Completeness} = 0.603482260183968;

# csv separator
$Self->{Separator} = ',';
Expand Down Expand Up @@ -4481,6 +4481,8 @@ sub Data {
'Can\'t connect to database, Perl module DBD::%s not installed!',
'Can\'t connect to database, read comment!' => 'Can\'t connect to database, read comment!',
'Database already contains data - it should be empty!' => 'Database already contains data - it should be empty!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.59454575324462;
$Self->{Completeness} = 0.594448094612352;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4485,6 +4485,8 @@ sub Data {
'No se puede conectar ala base de datos, Modulo Perl DBD::%s No Instalado!',
'Can\'t connect to database, read comment!' => '¡No se puede conectar a la base de datos, lee el comentario!',
'Database already contains data - it should be empty!' => 'La base de datos ya contiene datos. ¡Debería estar vacía!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'Error: Por favor, asegúrese de que su base de datos acepta paquetes de más de %s MB de tamaño (actualmente sólo acepta paquetes hasta %s MB). Por favor, adaptar el ajuste max_allowed_packet de su base de datos con el fin de evitar errores.',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es_CO.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.324954821751273;
$Self->{Completeness} = 0.324901445466491;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4480,6 +4480,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'La base de datos ya contiene información - debería estar vacía!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/es_MX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D/%M/%Y';
$Self->{DateInputFormat} = '%D/%M/%Y';
$Self->{DateInputFormatLong} = '%D/%M/%Y - %T';
$Self->{Completeness} = 0.730080499425004;
$Self->{Completeness} = 0.729960578186597;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4479,6 +4479,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => 'La Base de datos ya contiene datos - debe estar vacía!',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/et.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.165434532610481;
$Self->{Completeness} = 0.165407358738502;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -4479,6 +4479,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => '',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fa.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.616067028092656;
$Self->{Completeness} = 0.615965834428384;

# csv separator
$Self->{Separator} = '';
Expand Down Expand Up @@ -4484,6 +4484,8 @@ sub Data {
'نمی توانید به پایگاه داده متصل شوید، پرل و DBD :: %s نصب نشده است!',
'Can\'t connect to database, read comment!' => 'نمی توانید به پایگاه داده متصل شوید، به عنوان خواننده نظر!',
'Database already contains data - it should be empty!' => 'پایگاه داده در حال حاضر حاوی اطاعات است -باید خالی باشد !',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'خطا: لطفا مطمئن شوید که پایگاه داده خود را بسته بر می پذیرد %s MB در اندازه (در حال حاضر تنها بسته می پذیرد تا %s MB). لطفا تنظیمات max_allowed_packet از پایگاه داده خود را به منظور جلوگیری از اشتباهات وفق دهند.',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Language/fi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub Data {
$Self->{DateFormatShort} = '%D.%M.%Y';
$Self->{DateInputFormat} = '%D.%M.%Y';
$Self->{DateInputFormatLong} = '%D.%M.%Y - %T';
$Self->{Completeness} = 0.189255791030064;
$Self->{Completeness} = 0.189224704336399;

# csv separator
$Self->{Separator} = ';';
Expand Down Expand Up @@ -4481,6 +4481,8 @@ sub Data {
'',
'Can\'t connect to database, read comment!' => '',
'Database already contains data - it should be empty!' => '',
'Error: You have the wrong database version installed (%s). You need at least version %s! ' =>
'',
'Error: Please make sure your database accepts packages over %s MB in size (it currently only accepts packages up to %s MB). Please adapt the max_allowed_packet setting of your database in order to avoid errors.' =>
'',
'Error: Please set the value for innodb_log_file_size on your database to at least %s MB (current: %s MB, recommended: %s MB). For more information, please have a look at %s.' =>
Expand Down
Loading

0 comments on commit 8e6dc19

Please sign in to comment.