Unverified Commit 46f2dac8 authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

[fix][web,sql] fix sqlfile && fix i18n (#1506)

* hotfix sql file * hotfix sql file (#1500) * [fix][web] fix i18n (#1505)
parent 640fadd8
...@@ -667,18 +667,18 @@ VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Admin', NULL, NULL, NUL ...@@ -667,18 +667,18 @@ VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Admin', NULL, NULL, NUL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `dlink_fragment`; DROP TABLE IF EXISTS `dlink_fragment`;
CREATE TABLE `dlink_fragment` ( CREATE TABLE `dlink_fragment` (
`id` int NOT NULL AUTO_INCREMENT COMMENT 'id', `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'fragment name', `name` varchar(50) NOT NULL COMMENT 'fragment name',
`alias` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'alias', `alias` varchar(50) DEFAULT NULL COMMENT 'alias',
`fragment_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'fragment value', `tenant_id` int(11) NOT NULL DEFAULT '1' COMMENT 'tenant id',
`note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'note', `fragment_value` text NOT NULL COMMENT 'fragment value',
`enabled` tinyint DEFAULT '1' COMMENT 'is enable', `note` text COMMENT 'note',
`enabled` tinyint(4) DEFAULT '1' COMMENT 'is enable',
`create_time` datetime DEFAULT NULL COMMENT 'create time', `create_time` datetime DEFAULT NULL COMMENT 'create time',
`update_time` datetime DEFAULT NULL COMMENT 'update time', `update_time` datetime DEFAULT NULL COMMENT 'update time',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `un_idx1` (`name`) USING BTREE UNIQUE KEY `un_idx1` (`name`,`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='fragment management'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='fragment management';
-- ----------------------------------------------------------------------------- Metadata related data table the start ------------------------------------------------------------------------------------------- -- ----------------------------------------------------------------------------- Metadata related data table the start -------------------------------------------------------------------------------------------
......
...@@ -197,3 +197,5 @@ alter table `dlink_task_statement` modify column `statement` longtext CHARACTER ...@@ -197,3 +197,5 @@ alter table `dlink_task_statement` modify column `statement` longtext CHARACTER
alter table `dlink_history` modify column `statement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'statement set'; alter table `dlink_history` modify column `statement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'statement set';
alter table dlink_fragment add column `tenant_id` int not null DEFAULT '1' comment 'tenant id' after alias; alter table dlink_fragment add column `tenant_id` int not null DEFAULT '1' comment 'tenant id' after alias;
DROP INDEX un_idx1 ON `dlink_fragment`;
ALTER TABLE `dlink_fragment` ADD UNIQUE un_idx1 ( `name`,`tenant_id` );
\ No newline at end of file
...@@ -104,7 +104,7 @@ const StudioSqlConfig = (props: any) => { ...@@ -104,7 +104,7 @@ const StudioSqlConfig = (props: any) => {
<Col span={24}> <Col span={24}>
<Form.Item <Form.Item
label={l('pages.datastudio.label.maxrows')} className={styles.form_item} name="maxRowNum" label={l('pages.datastudio.label.maxrows')} className={styles.form_item} name="maxRowNum"
tooltip={l('pages.datastudio.label.execConfig.preview.data.tip')} tooltip={l('pages.datastudio.label.execConfig.maxrow.tip')}
> >
<InputNumber min={1} max={9999} defaultValue={100}/> <InputNumber min={1} max={9999} defaultValue={100}/>
</Form.Item> </Form.Item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment