Skip to content

Commit 9972ac2

Browse files
authored
fix(schemaActions): use different sets for row and column tables (#1627)
1 parent 2632b90 commit 9972ac2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/containers/Tenant/utils/schemaActions.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const getActions =
171171
{text: i18n('actions.createDirectory'), action: actions.createDirectory},
172172
]);
173173
}
174-
const TABLE_SET: ActionsSet = [
174+
const ROW_TABLE_SET: ActionsSet = [
175175
[copyItem],
176176
[
177177
{text: i18n('actions.alterTable'), action: actions.alterTable},
@@ -182,6 +182,15 @@ export const getActions =
182182
{text: i18n('actions.createCdcStream'), action: actions.createCdcStream},
183183
],
184184
];
185+
const COLUMN_TABLE_SET: ActionsSet = [
186+
[copyItem],
187+
[
188+
{text: i18n('actions.alterTable'), action: actions.alterTable},
189+
{text: i18n('actions.dropTable'), action: actions.dropTable},
190+
{text: i18n('actions.selectQuery'), action: actions.selectQuery},
191+
{text: i18n('actions.upsertQuery'), action: actions.upsertQuery},
192+
],
193+
];
185194

186195
const TOPIC_SET: ActionsSet = [
187196
[copyItem],
@@ -235,8 +244,8 @@ export const getActions =
235244
database: DIR_SET,
236245
directory: DIR_SET,
237246

238-
table: TABLE_SET,
239-
column_table: TABLE_SET,
247+
table: ROW_TABLE_SET,
248+
column_table: COLUMN_TABLE_SET,
240249

241250
index_table: JUST_COPY,
242251
topic: TOPIC_SET,

0 commit comments

Comments
 (0)