Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
8bad3003
Unverified
Commit
8bad3003
authored
May 06, 2024
by
Lex Li
Committed by
GitHub
May 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Optimization] [SQL] Increase dinky_udf_manage table's class_name column's…
[Optimization] [SQL] Increase dinky_udf_manage table's class_name column's length from 50 to 100 (#3330)
parent
b7c82edd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
2 deletions
+51
-2
dinky-mysql.sql
script/sql/dinky-mysql.sql
+1
-1
dinky-pg.sql
script/sql/dinky-pg.sql
+1
-1
dinky_ddl.sql
script/sql/upgrade/1.1.0_schema/mysql/dinky_ddl.sql
+26
-0
dinky_ddl.sql
script/sql/upgrade/1.1.0_schema/postgre/dinky_ddl.sql
+23
-0
No files found.
script/sql/dinky-mysql.sql
View file @
8bad3003
...
@@ -2012,7 +2012,7 @@ drop table if exists `dinky_udf_manage`;
...
@@ -2012,7 +2012,7 @@ drop table if exists `dinky_udf_manage`;
CREATE
TABLE
`dinky_udf_manage`
(
CREATE
TABLE
`dinky_udf_manage`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'udf name'
,
`name`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'udf name'
,
`class_name`
varchar
(
5
0
)
DEFAULT
NULL
COMMENT
'Complete class name'
,
`class_name`
varchar
(
10
0
)
DEFAULT
NULL
COMMENT
'Complete class name'
,
`task_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'task id'
,
`task_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'task id'
,
`resources_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'resources id'
,
`resources_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'resources id'
,
`enabled`
tinyint
(
1
)
DEFAULT
1
COMMENT
'is enable'
,
`enabled`
tinyint
(
1
)
DEFAULT
1
COMMENT
'is enable'
,
...
...
script/sql/dinky-pg.sql
View file @
8bad3003
...
@@ -4059,7 +4059,7 @@ CREATE TABLE dinky_udf_manage
...
@@ -4059,7 +4059,7 @@ CREATE TABLE dinky_udf_manage
(
(
id
SERIAL
PRIMARY
KEY
NOT
NULL
,
id
SERIAL
PRIMARY
KEY
NOT
NULL
,
name
VARCHAR
(
50
),
name
VARCHAR
(
50
),
class_name
VARCHAR
(
5
0
),
class_name
VARCHAR
(
10
0
),
task_id
INT
,
task_id
INT
,
resources_id
INT
,
resources_id
INT
,
enabled
BOOLEAN
DEFAULT
TRUE
,
enabled
BOOLEAN
DEFAULT
TRUE
,
...
...
script/sql/upgrade/1.1.0_schema/mysql/dinky_ddl.sql
0 → 100644
View file @
8bad3003
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- Increase class_name column's length from 50 to 100.
ALTER
TABLE
dinky_udf_manage
CHANGE
COLUMN
class_name
class_name
VARCHAR
(
100
)
null
DEFAULT
null
COMMENT
'Complete class name'
;
SET
FOREIGN_KEY_CHECKS
=
1
;
script/sql/upgrade/1.1.0_schema/postgre/dinky_ddl.sql
0 → 100644
View file @
8bad3003
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
-- Increase class_name column's length from 50 to 100.
ALTER
TABLE
dinky_udf_manage
ALTER
COLUMN
class_name
TYPE
VARCHAR
(
100
);
COMMENT
ON
COLUMN
dinky_udf_manage
.
class_name
IS
'Complete class name'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment