From 59dc6b49cd039f85dc77b1701c6db76d008e7fb3 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 17 May 2024 22:26:15 -0400 Subject: [PATCH 1/2] fix(db): Prevent data loss by temporarily disabling `db:convert-type` Needed until #45257 is addressed to prevent data loss Signed-off-by: Josh --- core/Command/Db/ConvertType.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index db618e938c007..176c321c1512e 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -177,6 +177,13 @@ protected function readPassword(InputInterface $input, OutputInterface $output) } protected function execute(InputInterface $input, OutputInterface $output): int { + // WARNING: + // Leave in place until #45257 is addressed to prevent data loss (hopefully in time for the next maintenance release) + // + throw new \InvalidArgumentException( + 'This command is temporarily disabled (until the next maintenance release).' + ); + $this->validateInput($input, $output); $this->readPassword($input, $output); From 2ccde6f231473690c5f8e336405944857aaf1af9 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 18 May 2024 10:50:38 -0400 Subject: [PATCH 2/2] fix(db): cs-fix spacing Signed-off-by: Josh --- core/Command/Db/ConvertType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 176c321c1512e..4d95ee50c4e29 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -179,7 +179,7 @@ protected function readPassword(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output): int { // WARNING: // Leave in place until #45257 is addressed to prevent data loss (hopefully in time for the next maintenance release) - // + // throw new \InvalidArgumentException( 'This command is temporarily disabled (until the next maintenance release).' );