From 2c619d14dc1a04b7aa9f86b7573c754a5285c252 Mon Sep 17 00:00:00 2001 From: Aleh Hutnikau Date: Mon, 22 Jun 2020 13:12:05 +0300 Subject: [PATCH 1/4] Deprecate updater file --- manifest.php | 2 +- scripts/update/Updater.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest.php b/manifest.php index 92d5be3..dd24879 100644 --- a/manifest.php +++ b/manifest.php @@ -25,7 +25,7 @@ 'label' => 'QTI PCI samples', 'description' => '', 'license' => 'GPL-2.0', - 'version' => '2.9.1', + 'version' => '2.10.0', 'author' => 'Open Assessment Technologies', 'requires' => array( 'qtiItemPci' => '>=1.1.0', diff --git a/scripts/update/Updater.php b/scripts/update/Updater.php index af8b697..16f209c 100644 --- a/scripts/update/Updater.php +++ b/scripts/update/Updater.php @@ -25,6 +25,9 @@ use oat\qtiItemPci\model\IMSPciModel; use oat\taoQtiItem\model\HookRegistry; +/** + * @deprecated use migrations instead. See https://github.com/oat-sa/generis/wiki/Tao-Update-Process + */ class Updater extends \common_ext_ExtensionUpdater { @@ -116,5 +119,10 @@ public function update($initialVersion) $this->setVersion('2.8.0'); } $this->skip('2.8.0', '2.9.1'); + + //Updater files are deprecated. Please use migrations. + //See: https://github.com/oat-sa/generis/wiki/Tao-Update-Process + + $this->setVersion($this->getExtension()->getManifest()->getVersion()); } } From c45fb9cdc7f9729ac6cb3ccf106229bc1c1fdb56 Mon Sep 17 00:00:00 2001 From: gitromba Date: Thu, 25 Jun 2020 13:20:56 +0200 Subject: [PATCH 2/4] chore: prevent composer.lock and vendor folder from being committed. --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90a238a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ + +composer.lock +vendor/ + + From c5625d2b27948567ba99c44af20bf38db3c80fd4 Mon Sep 17 00:00:00 2001 From: bugalot Date: Fri, 26 Jun 2020 17:00:54 +0200 Subject: [PATCH 3/4] add .idea to .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 90a238a..59e8369 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ composer.lock vendor/ - +.idea/ From f89498acbc2b3ea86d2085350a6ee36d3dacb8c4 Mon Sep 17 00:00:00 2001 From: bugalot Date: Fri, 26 Jun 2020 17:01:15 +0200 Subject: [PATCH 4/4] Bump version 2.10.1 --- manifest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.php b/manifest.php index dd24879..a558113 100644 --- a/manifest.php +++ b/manifest.php @@ -25,7 +25,7 @@ 'label' => 'QTI PCI samples', 'description' => '', 'license' => 'GPL-2.0', - 'version' => '2.10.0', + 'version' => '2.10.1', 'author' => 'Open Assessment Technologies', 'requires' => array( 'qtiItemPci' => '>=1.1.0',