Commit graph

302 commits

Author SHA1 Message Date
Heiko August
baa7570d72 Change: reformatting of the list of files to upgrade (upgrade starting with 2.4.19 to 2.4.24) 2024-03-18 20:22:23 +01:00
Heiko August
d6c9c89a21 Change: add a try-catch block for a database transaction (upgrade starting with 2.4.19 to 2.4.24)
All changes for an upgrade, starting with a stable version of the MLF 2.4 branch, are stored in a database transaction. This ensures, that the upgrade will succeed of will fail completely without leaving the forum in an unusable interim state.
2024-03-18 20:22:23 +01:00
Heiko August
9d54862439 Fix: use the correct variable and array key names 2024-03-18 20:22:23 +01:00
Heiko August
5724cac8df CHange: remove the code for changing the table type from the version specific upgrade sections 2024-03-18 20:22:23 +01:00
Heiko August
22307a8a52 Change: add a block for changing the table engine type
This block queries all tables that are not of type InnoDB and changes their type to Innodb in a loop. If none are found, nothing happens.
2024-03-18 20:22:23 +01:00
Heiko August
0e3dd39c24 Change: remove the check for uniqueness of e-mail-addresses (part 3)
Remove it from the upgrade block for version 2.4.99.1.
2024-03-18 20:22:23 +01:00
Heiko August
ceeba6c696 Change: remove the check for uniqueness of e-mail-addresses (part 2)
Remove it from the upgrade block for version 2.4.99.0.
2024-03-18 20:22:23 +01:00
Heiko August
bf0cd08df3 Change: remove the check for uniqueness of e-mail-addresses (part 1)
Remove it from the upgrade block for versions 2.4.19 to 2.4.24.
2024-03-18 20:22:23 +01:00
Heiko August
75166d9388 Change: separate the verification of e-mail addresses from the upgrade block
Check the uniqueness of e-mail-adresses only once and do not repeat the code in every upgrade block again and again.
2024-03-18 20:22:23 +01:00
Heiko August
7387cdf221 Change: check the database server versions and exit the upgrade in necessary
Because of the index size issue with utf8mb4 in MySQL < 5.7(.7) we need to ensure the database server to fulfill the index size for text columns to be able to store more than 767 Bytes. This was introduced with MySQL 5.7.7 (respective with MariaDB 10.2.2). Cancel the upgrade if this minimum requirement is not met.
2024-03-18 20:22:23 +01:00
Heiko August
d0e73e4996 Change: replace the repeated code for writing the version number with a function 2024-03-18 20:22:23 +01:00
Heiko August
ddb37963cb Change: add code block for upgrade starting from versions 20220517.1 and 20220529.1 2024-03-18 20:22:23 +01:00
Heiko August
89939c52ff Change: add code block for upgrade starting from versions 20220508.1 and 20220509.1 2024-03-18 20:22:23 +01:00
Heiko August
36ede4b147 Change: add code block for upgrade starting from versions 2.4.99.2 and 2.4.99.3 2024-03-18 20:22:23 +01:00
Heiko August
1b56e3b3ca Change: add code block for upgrade starting from version 2.4.99.1 2024-03-18 20:22:23 +01:00
Heiko August
9fe99c6e31 Fix: solve an copy'n'paste error, there is no variable $result in this script 2024-03-18 20:22:23 +01:00
Heiko August
9a9a09b54d Change: add the block for an upgrade, starting from version 2.4.99.0 2024-03-18 20:22:23 +01:00
Heiko August
5824261262 Change: add code block for upgrade starting from versions 2.4.19 to 2.4.24
Different from the now official upgrade script, that starts with version 2.4.19.1, this script also allows version 2.4.19 as starting point. This shouldn't be a problem, because there was no database specific change between 2.4.19 and 2.4.19.1.
2024-03-18 20:22:23 +01:00
Heiko August
6dc4f7d96e Change: add a new upgrade file with the basic infrastructure as its first content
The file will contain separate blocks for every version, one can start an upgrade from. The file will be renamed finally but will be a separate way for now.
2024-03-18 20:22:23 +01:00
fcaspar
f275e7395d
fixed missing double point (#674)
* fixed missing double point

* fixed false sql query

* fixed false sql query
2023-04-26 20:39:45 +02:00
Michael Lösler
43471266b3
Bad Behavior (#672)
- remove outdated module "Bad Behavior"
- https://mylittleforum.net/forum/index.php?id=10734
2023-03-18 16:35:04 +01:00
Heiko August
4535fade9b Fix: correct the possible field length of the column user_email to 255 chars 2022-11-23 19:12:23 +01:00
Heiko August
962aa1a23a Fix: read multiple times used e-mail-addresses from the database and interrupt the update in this case 2022-11-23 19:12:23 +01:00
Heiko August
f8aa07c1a2 Fix: reset the charset for column user_email after changing the charset of the table
The first repeat of setting of the column size (varchar(255)) is necessary to make the rest of the query (CHARSET SET and COLLATE) working.
The second query in the update procedure ensures the correct charset for the case of an update starting from version 2.4.99.1.
2022-11-23 19:12:23 +01:00
Heiko August
8c055f84d1 Fix: resize the column user_email before the change of the table charset to utf8mb4 2022-11-23 19:12:23 +01:00
Heiko August
9dbbaeab6a Fix: take the create table statements out of the transactions 2022-11-23 19:12:23 +01:00
Heiko August
2fa3340770 Fix: outsource the table drop queries from the table creation code
Dropping tables, that should not exist in this moment can be handled independently from the creation process of the tables.
2022-11-23 19:12:23 +01:00
Heiko August
1d4a34351b Fix: delete remaining tables from previous installations before creating them again
This fixes issues with upgrades of forum scripts from 2.4.x-versions to any 2.5-version, when there was a testing installation of a 2.5-development version, that created these tables before.

Often such testing installations with a following downgrade to a stable version results in remaining, orphaned tables, that breaks the update script in a later run, when it tries to create the tables again.

I put the queries to drop and create the tables into a transaction. Thatswhy I needed to introduce the function mysqli_multi_query to run all four queries per table at once.
2022-11-23 19:12:23 +01:00
Michael Lösler
069562f5b2
Mathjax (#637)
* Update MathJax

- MathJax updated to version 3
- Loading of mathjax resources prevented, if unnecessary (e.g. at main page)

* CDN

- CDN to recommended one changed, cf. https://docs.mathjax.org/en/latest/web/start.html
2022-08-09 17:48:33 +02:00
Heiko August
8fe0b4ed02 Fix: correct syntax error 2022-08-03 22:35:18 +02:00
Heiko August
0abbf3fa51 Change: add the list of files to update 2022-08-03 21:23:03 +02:00
Heiko August
63582f50dc Change: add version 20220529.1 to the list of updatable versions 2022-08-03 21:23:03 +02:00
Heiko August
f13d39ddab Fix: delete superfluous indexes in the userdata table, that was generated by accident 2022-07-25 20:57:31 +02:00
Heiko August
2769c82827 Fix: remove the keyword UNIQUE from the statement because it adds additional identical indexes 2022-07-25 20:57:31 +02:00
Heiko August
50776a9a38 Fix: change charset of column user_email to utf8 to prevent index size error
The charset has to be corrected before the index gets added. The code manipulates the upgrade section for version 2.4.99.2. The identical database query is also part of the upgrade to version 20220517.1. I was not able to produce an error when altering the column definition again with and to the same settings. So I have to assume, that the script will not break.
2022-07-25 20:57:31 +02:00
Heiko August
e50e431ead Fix: remove column email_notification if it exists during the upgrade script run 2022-06-02 09:57:30 +02:00
Heiko August
69ace45be6 Change: add the list of files to replace and to remove to the upgrade script 2022-05-29 21:00:27 +02:00
Heiko August
e3c1d7be69 Change: add version 20220517.1 to the list of upgradable versions 2022-05-29 21:00:27 +02:00
Heiko August
e7bc8ea3f5 Change: add the query to set the column mlf2_userdata.user_email to charset utf8 (without mb4) 2022-05-17 21:44:24 +02:00
Heiko August
a5777451bc Change: add version 20220509.1 to the list of upgradable versions 2022-05-17 21:44:24 +02:00
Heiko August
3ddeb1f5cf Change: add the list of files to be replaced with the new version 2022-05-17 21:44:24 +02:00
Heiko August
f072b25def Change: add the list of files to replace to the update script 2022-05-09 21:04:26 +02:00
Heiko August
13fd3a6ceb Change: put version 20220508.1 to the list of updatable versions 2022-05-09 21:04:26 +02:00
Heiko August
9e21b01afd Change: add all database changes to the file update/update.sql 2022-05-08 18:07:13 +02:00
Heiko August
243a0fd678 Fix: add the lost bracket, it's non existence caused a syntax error 2022-05-08 18:07:13 +02:00
Heiko August
cd962b0fa0 Change: add the list of files to replace to the completed list of versions 2022-05-08 18:07:13 +02:00
Heiko August
2338871205 Change: add the interim versions between 2.4.20 and 2.4.99.0 to the list of versions that are upgradable 2022-05-08 18:07:13 +02:00
Heiko August
a921dcba7b Change: add key creation for B8_spam and B(_training_type to the update and installation script 2022-05-08 18:07:13 +02:00
Heiko August
cd6365bfff Change: add the unique keys that appears in the update script also to the installation script and vice versa 2022-05-08 18:07:13 +02:00
Heiko August
616894bdb8 Change: add the versions between 2.4.20 and 2.4.99.0 to the list of versions to update 2022-05-08 18:07:13 +02:00