Skip to content

Commit

Permalink
[Improvement-15009][Parameter] Change project parameter value to text
Browse files Browse the repository at this point in the history
  • Loading branch information
rickchengx committed Nov 23, 2023
1 parent df656a7 commit 623bbe8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ CREATE TABLE t_ds_project_parameter
(
id int(11) NOT NULL AUTO_INCREMENT,
param_name varchar(255) NOT NULL,
param_value varchar(255) NOT NULL,
param_value text NOT NULL,
code bigint(20) NOT NULL,
project_code bigint(20) NOT NULL,
user_id int(11) DEFAULT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ DROP TABLE IF EXISTS `t_ds_project_parameter`;
CREATE TABLE `t_ds_project_parameter` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
`param_name` varchar(255) NOT NULL COMMENT 'project parameter name',
`param_value` varchar(255) NOT NULL COMMENT 'project parameter value',
`param_value` text NOT NULL COMMENT 'project parameter value',
`code` bigint(20) NOT NULL COMMENT 'encoding',
`project_code` bigint(20) NOT NULL COMMENT 'project code',
`user_id` int(11) DEFAULT NULL COMMENT 'creator id',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ DROP TABLE IF EXISTS t_ds_project_parameter;
CREATE TABLE t_ds_project_parameter (
id int NOT NULL ,
param_name varchar(255) NOT NULL ,
param_value varchar(255) NOT NULL ,
param_value text NOT NULL ,
code bigint NOT NULL,
project_code bigint NOT NULL,
user_id int DEFAULT NULL ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ d//
delimiter ;
CALL drop_t_ds_k8s_namespace_col_pod_request_memory;
DROP PROCEDURE drop_t_ds_k8s_namespace_col_pod_request_memory;

ALTER TABLE `t_ds_project_parameter` MODIFY COLUMN `param_value` text NOT NULL COMMENT 'project parameter value';
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ ALTER TABLE "t_ds_k8s_namespace" DROP COLUMN IF EXISTS "limits_memory";
ALTER TABLE "t_ds_k8s_namespace" DROP COLUMN IF EXISTS "pod_replicas";
ALTER TABLE "t_ds_k8s_namespace" DROP COLUMN IF EXISTS "pod_request_cpu";
ALTER TABLE "t_ds_k8s_namespace" DROP COLUMN IF EXISTS "pod_request_memory";

ALTER TABLE t_ds_project_parameter ALTER COLUMN param_value TYPE text;

0 comments on commit 623bbe8

Please sign in to comment.