diff --git a/db/update15.0.rc3.sql b/db/update15.0.rc3.sql index a178bfc08c..32c075db94 100644 --- a/db/update15.0.rc3.sql +++ b/db/update15.0.rc3.sql @@ -1,2 +1,6 @@ +<<<<<<< 8f71af3835517e1753ce10785378aceafe5f8f91 ALTER TABLE `zt_webhook` CHANGE `projects` `executions` text NOT NULL; ALTER TABLE `zt_webhook` CHANGE `executions` `executions` text NOT NULL; +======= +ALTER TABLE `zt_repo` ADD `extra` char(30) COLLATE 'utf8_general_ci' NOT NULL AFTER `desc`; +>>>>>>> * Fix bug #12296. diff --git a/db/zentao.sql b/db/zentao.sql index 40ecb203ab..2972f01cdf 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -751,6 +751,7 @@ CREATE TABLE IF NOT EXISTS `zt_repo` ( `synced` tinyint(1) NOT NULL DEFAULT '0', `lastSync` datetime NOT NULL, `desc` text NOT NULL, + `extra` char(30) NOT NULL, `deleted` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/module/repo/model.php b/module/repo/model.php index 3ba22e6e32..fd22ec2338 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -237,6 +237,7 @@ class repoModel extends model $data = fixer::input('post') ->setIf($this->post->SCM == 'Gitlab', 'password', $this->post->gitlabToken) ->setIf($this->post->SCM == 'Gitlab', 'client', $this->post->gitlabHost) + ->setIf($this->post->SCM == 'Gitlab', 'extra', $this->post->gitlabProject) ->skipSpecial('path,client,account,password') ->setDefault('product', '') ->join('product', ',') diff --git a/module/repo/view/edit.html.php b/module/repo/view/edit.html.php index 823e7dfd13..296ed78293 100644 --- a/module/repo/view/edit.html.php +++ b/module/repo/view/edit.html.php @@ -48,7 +48,7 @@ repo->gitlabProject;?> - + extra, "class='form-control chosen'");?> repo->name; ?>