Do not forget and update the Lync backend databases. ;)
We need to patch all the databases, and the LIS / XDS from CMS.
First we remember, the Standard Edition has its own local SQL Server containing all databases necessary for its related Frontend Services, therefore a single command similar as for the SQL Backends is required.
If you have an Enterprise setup, you need to identify which features are installed, e.g. only native or incl. Archiving/ Monitoring, or even Persistent Chat.
This separated databases require their own commands.
For the entire process based on Enterprise Deployment, please enumerate your Topology and identify the configured components.
Lync Standard Edition:
Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn SE.FQDN -Verbose
Lync Server 2013 Enterprise Edition
Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN
-DatabasePaths "D:\LOGS","D:\DATA" -SqlInstanceName DBInstance-Verbose
-DatabasePaths "D:\LOGS","D:\DATA" -SqlInstanceName DBInstance-Verbose
Lync Server 2013 Persistent Chat Databases
Install-CsDatabase -DatabaseType PersistentChat -SqlServerFqdn PChatBE.fqdn
-SqlInstanceName DBInstance -Verbose
-SqlInstanceName DBInstance -Verbose
Lync Server 2013 Monitoring/Archiving/Persistent Chat Databases
Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn SQLServer.FQDN
-SqlInstanceName DBInstance -Verbose
-SqlInstanceName DBInstance -Verbose
The CMS needs to be updates to, the LIS and XDS Database, but this must be done AFTER the other Database are updated.
This is also valid if there are multiple pools and multiple SQL backends.
Apply the Central Management Database update
Install-CsDatabase -CentralManagementDatabase -SqlServerFqdn CMS.FQDN
-SqlInstanceName DBInstance -Verbose
-SqlInstanceName DBInstance -Verbose