This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-tools.git
The following commit(s) were added to refs/heads/master by this push: new 3d5a740 Pluginportal: Plugin can't be added because version can't be stored new acee5db Merge pull request #65 from matthiasblaesing/versionfield_length 3d5a740 is described below commit 3d5a740bfe10b270362e6423a8a14cfc5c2d918b Author: Matthias Bläsing <mblaes...@doppel-helix.eu> AuthorDate: Sat Apr 29 19:58:59 2023 +0200 Pluginportal: Plugin can't be added because version can't be stored The db structure for the plugin portal has different size restrictions for version fields. This unifies the version fields to a size of 50 chars. --- pp3/config/pp3.sql | 5 +++++ pp3/module/Application/src/Application/Entity/Plugin.php | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pp3/config/pp3.sql b/pp3/config/pp3.sql index 6cf372e..725c0ef 100644 --- a/pp3/config/pp3.sql +++ b/pp3/config/pp3.sql @@ -154,6 +154,11 @@ insert into plugin_user SELECT id, author_id FROM plugin; ALTER TABLE plugin DROP COLUMN author_id; +ALTER TABLE nb_version MODIFY COLUMN version varchar(50) NOT NULL; +ALTER TABLE plugin_version MODIFY COLUMN version varchar(50) NOT NULL; +ALTER TABLE plugin MODIFY COLUMN latest_version varchar(50) NOT NULL; +ALTER TABLE plugin MODIFY COLUMN release_version varchar(50) NOT NULL; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/pp3/module/Application/src/Application/Entity/Plugin.php b/pp3/module/Application/src/Application/Entity/Plugin.php index eee48e1..caeccd0 100644 --- a/pp3/module/Application/src/Application/Entity/Plugin.php +++ b/pp3/module/Application/src/Application/Entity/Plugin.php @@ -22,6 +22,7 @@ namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; use Application\Entity\PluginVersion; +use Application\Pp\MavenDataLoader; /** * @ORM\Entity @@ -32,6 +33,9 @@ class Plugin extends Base\Plugin { const STATUS_PRIVATE = 1; const STATUS_PUBLIC = 2; + /** + * @var MavenDataLoader + */ private $_dataLoader; public function setDataLoader($dl) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists