-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add/drop table index template #1456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -36,6 +36,7 @@ | |||
"actions.dropTopic": "Drop topic...", | |||
"actions.dropView": "Drop view...", | |||
"actions.alterTable": "Alter table...", | |||
"actions.addTableIndex": "Add index...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want to add action "Drop index..." directly to index entity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added INDEX_SET
@@ -248,3 +248,11 @@ export const dropAsyncReplicationTemplate = () => { | |||
export const alterAsyncReplicationTemplate = () => { | |||
return `ALTER ASYNC REPLICATION \`$path\` SET (STATE=\`$state\`, FAILOVER_MODE=\`$failoverMode\`);`; | |||
}; | |||
|
|||
export const addTableIndex = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may use function addTableIndex('$path')
from src/containers/Tenant/utils/schemaQueryTemplates.ts
. In most cases templates are identical.
What do you think if we create general template creators and use them if possible? This will prevent double-fixing templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on a second thougth this can be done right here
Closes #1454
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Bundle Size: 🔽
Current: 78.97 MB | Main: 78.98 MB
Diff: 0.01 MB (-0.01%)
✅ Bundle size decreased.
ℹ️ CI Information