Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/containers/Tenant/utils/schemaActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const getActions =
{text: i18n('actions.createDirectory'), action: actions.createDirectory},
]);
}
const TABLE_SET: ActionsSet = [
const ROW_TABLE_SET: ActionsSet = [
[copyItem],
[
{text: i18n('actions.alterTable'), action: actions.alterTable},
Expand All @@ -182,6 +182,15 @@ export const getActions =
{text: i18n('actions.createCdcStream'), action: actions.createCdcStream},
],
];
const COLUMN_TABLE_SET: ActionsSet = [
[copyItem],
[
{text: i18n('actions.alterTable'), action: actions.alterTable},
{text: i18n('actions.dropTable'), action: actions.dropTable},
{text: i18n('actions.selectQuery'), action: actions.selectQuery},
{text: i18n('actions.upsertQuery'), action: actions.upsertQuery},
],
];

const TOPIC_SET: ActionsSet = [
[copyItem],
Expand Down Expand Up @@ -235,8 +244,8 @@ export const getActions =
database: DIR_SET,
directory: DIR_SET,

table: TABLE_SET,
column_table: TABLE_SET,
table: ROW_TABLE_SET,
column_table: COLUMN_TABLE_SET,

index_table: JUST_COPY,
topic: TOPIC_SET,
Expand Down
Loading