mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 15:01:23 +01:00
Fix schema upgrade when dropping tables
We need to drop tables in the correct order due to foreign table constraints (on `application_services`), otherwise the DROP TABLE command will fail. Introduced in #4992.
This commit is contained in:
parent
644b86677f
commit
50d2a3059d
1 changed files with 3 additions and 1 deletions
|
@ -13,8 +13,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DROP TABLE IF EXISTS application_services;
|
-- we need to do this first due to foreign constraints
|
||||||
DROP TABLE IF EXISTS application_services_regex;
|
DROP TABLE IF EXISTS application_services_regex;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS application_services;
|
||||||
DROP TABLE IF EXISTS transaction_id_to_pdu;
|
DROP TABLE IF EXISTS transaction_id_to_pdu;
|
||||||
DROP TABLE IF EXISTS stats_reporting;
|
DROP TABLE IF EXISTS stats_reporting;
|
||||||
DROP TABLE IF EXISTS current_state_resets;
|
DROP TABLE IF EXISTS current_state_resets;
|
||||||
|
|
Loading…
Reference in a new issue