From 40cc17c2e6652f0fe7297a215aac0a60d09a6a67 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Thu, 15 Oct 2015 23:51:05 +0100 Subject: [PATCH 1/4] Fixes the technical debt migration --- PHPCI/Migrations/20151015124825_convert_errors.php | 2 +- PHPCI/Store/BuildMetaStore.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPCI/Migrations/20151015124825_convert_errors.php b/PHPCI/Migrations/20151015124825_convert_errors.php index 3622bf14..69303da0 100644 --- a/PHPCI/Migrations/20151015124825_convert_errors.php +++ b/PHPCI/Migrations/20151015124825_convert_errors.php @@ -47,7 +47,7 @@ class ConvertErrors extends AbstractMigration $this->processPhpCpdMeta($meta); break; - case 'technicaldebt-data': + case 'technical_debt-data': $this->processTechnicalDebtMeta($meta); break; } diff --git a/PHPCI/Store/BuildMetaStore.php b/PHPCI/Store/BuildMetaStore.php index f932bc11..aade45b1 100644 --- a/PHPCI/Store/BuildMetaStore.php +++ b/PHPCI/Store/BuildMetaStore.php @@ -28,7 +28,7 @@ class BuildMetaStore extends BuildMetaStoreBase public function getErrorsForUpgrade($limit) { $query = 'SELECT * FROM build_meta - WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\') + WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\', \'technical_debt-data\') ORDER BY id ASC LIMIT :limit'; $stmt = Database::getConnection('read')->prepare($query); From cf1c9cd024adeee33149e259d419a6d9f8ecf4d8 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Mon, 19 Oct 2015 20:54:41 +0000 Subject: [PATCH 2/4] Add a migration to clean up technical debt data --- ...20151019205225_fix_technical_debt_data.php | 6 ++++ composer.lock | 36 +++++++++---------- 2 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 PHPCI/Migrations/20151019205225_fix_technical_debt_data.php diff --git a/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php b/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php new file mode 100644 index 00000000..fe1b1ed3 --- /dev/null +++ b/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php @@ -0,0 +1,6 @@ + Date: Thu, 15 Oct 2015 23:51:05 +0100 Subject: [PATCH 3/4] Fixes the technical debt migration --- PHPCI/Migrations/20151015124825_convert_errors.php | 2 +- PHPCI/Store/BuildMetaStore.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PHPCI/Migrations/20151015124825_convert_errors.php b/PHPCI/Migrations/20151015124825_convert_errors.php index 3622bf14..69303da0 100644 --- a/PHPCI/Migrations/20151015124825_convert_errors.php +++ b/PHPCI/Migrations/20151015124825_convert_errors.php @@ -47,7 +47,7 @@ class ConvertErrors extends AbstractMigration $this->processPhpCpdMeta($meta); break; - case 'technicaldebt-data': + case 'technical_debt-data': $this->processTechnicalDebtMeta($meta); break; } diff --git a/PHPCI/Store/BuildMetaStore.php b/PHPCI/Store/BuildMetaStore.php index f932bc11..aade45b1 100644 --- a/PHPCI/Store/BuildMetaStore.php +++ b/PHPCI/Store/BuildMetaStore.php @@ -28,7 +28,7 @@ class BuildMetaStore extends BuildMetaStoreBase public function getErrorsForUpgrade($limit) { $query = 'SELECT * FROM build_meta - WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\') + WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\', \'technical_debt-data\') ORDER BY id ASC LIMIT :limit'; $stmt = Database::getConnection('read')->prepare($query); From ec99804ca46ced03b43783d3986c7d5cfce45996 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Mon, 19 Oct 2015 20:54:41 +0000 Subject: [PATCH 4/4] Add a migration to clean up technical debt data --- ...20151019205225_fix_technical_debt_data.php | 6 ++++ composer.lock | 36 +++++++++---------- 2 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 PHPCI/Migrations/20151019205225_fix_technical_debt_data.php diff --git a/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php b/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php new file mode 100644 index 00000000..fe1b1ed3 --- /dev/null +++ b/PHPCI/Migrations/20151019205225_fix_technical_debt_data.php @@ -0,0 +1,6 @@ +