Skip to content

Commit 2b80e22

Browse files
fix: rename create cdc action, add create cdc to a table
1 parent 7ef349c commit 2b80e22

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/containers/Tenant/Query/NewSQL/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"action.create-topic": "Create Topic",
2222
"action.drop-topic": "Drop Topic",
2323
"action.alter-topic": "Alter Topic",
24-
"action.create-cdc-stream": "Create CDC Stream",
24+
"action.create-cdc-stream": "Create changefeed",
2525
"action.create-async-replication": "Create async replication",
2626
"action.create-user": "Create user",
2727
"action.create-group": "Create group",

src/containers/Tenant/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"actions.dropView": "Drop view...",
3939
"actions.alterTable": "Alter table...",
4040
"actions.addTableIndex": "Add index...",
41+
"actions.createCdcStream": "Create changefeed...",
4142
"actions.alterTopic": "Alter topic...",
4243
"actions.selectQuery": "Select query...",
4344
"actions.upsertQuery": "Upsert query...",

src/containers/Tenant/utils/schemaActions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
alterTableTemplate,
2121
alterTopicTemplate,
2222
createAsyncReplicationTemplate,
23+
createCdcStreamTemplate,
2324
createColumnTableTemplate,
2425
createExternalTableTemplate,
2526
createTableTemplate,
@@ -114,6 +115,7 @@ const bindActions = (
114115
dropView: inputQuery(dropViewTemplate, 'script'),
115116
dropIndex: inputQuery(dropTableIndex, 'script'),
116117
addTableIndex: inputQuery(addTableIndex, 'script'),
118+
createCdcStream: inputQuery(createCdcStreamTemplate, 'script'),
117119
copyPath: () => {
118120
try {
119121
copy(params.relativePath);
@@ -172,6 +174,7 @@ export const getActions =
172174
{text: i18n('actions.selectQuery'), action: actions.selectQuery},
173175
{text: i18n('actions.upsertQuery'), action: actions.upsertQuery},
174176
{text: i18n('actions.addTableIndex'), action: actions.addTableIndex},
177+
{text: i18n('actions.createCdcStream'), action: actions.createCdcStream},
175178
],
176179
];
177180

0 commit comments

Comments
 (0)