Add DatabaseUpdater::modifyTable
authorEddie Greiner-Petter <git@eddie-sh.de>
Sat, 6 May 2017 23:59:58 +0000 (01:59 +0200)
committerEddie Greiner-Petter <git@eddie-sh.de>
Sun, 7 May 2017 00:15:14 +0000 (02:15 +0200)
commit7518475bb1e711d119fd1595d81b00ac827901d1
tree543f60c86c648d8a7413044efeaa9775fe29bd1a
parentaba5106e9a98fbd914128f134ea8f18c14ca2db2
Add DatabaseUpdater::modifyTable

This introduces the function modifyTable to the DatabaseUpdater class
which will allow to alter multiple columns on the same table in a single
sql patch file. In favor of this new function, usage of
MssqlUpdater::updateSchema for mssql patches is discouraged for the
future.

Also fix T70786, which is about update rows being inserted regardless
whether applying the patch was successful or not (no retry on failure).
Now update rows only get inserted if applying the patch was successful.

Bug: T70786
Change-Id: Id2a1583cd9efa5ef271ae67238119bc24b76a3c6
includes/installer/DatabaseUpdater.php
includes/installer/MssqlUpdater.php