-
Notifications
You must be signed in to change notification settings - Fork 1.1k
INT-4574: JDBC: Add NOT NULL for primary keys #2698
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
INT-4574: JDBC: Add NOT NULL for primary keys #2698
Conversation
JIRA: https://jira.spring.io/browse/INT-4574 Some RDBMS don't allow have nullable columns for primary keys * Add NOT NULL for all the columns involved in primary keys **Cherry-pick to 4.3.x**
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.
One question.
-- This is only needed if the message group store property 'priorityEnabled' is true | ||
-- CREATE UNIQUE INDEX INT_CHANNEL_MSG_PRIORITY_IDX ON INT_CHANNEL_MESSAGE (REGION, GROUP_KEY, MESSAGE_PRIORITY DESC, CREATED_DATE, MESSAGE_SEQUENCE); | ||
CREATE INDEX INT_CHANNEL_MSG_DATE_IDX ON INT_CHANNEL_MESSAGE (CREATED_DATE, MESSAGE_SEQUENCE); | ||
CREATE INDEX INT_CHANNEL_MSG_PRIORITY_IDX ON INT_CHANNEL_MESSAGE (MESSAGE_PRIORITY DESC, CREATED_DATE, MESSAGE_SEQUENCE); |
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.
Why changes to this table here, but not on master?
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.
Oh! this must not be here. The problem is with vpp
.We Don't have it on master any more.
Will fix it later here.
We must keep your index here.
Restored all the previous state of scripts with the fix for VPP template. Let me know if this doesn't back-port to 4.3.x properly. We don't have VPP on master after this: f970bf0 |
Cherry-pick is not clean because the channel tables are in separate files; please backport; thanks. |
* INT-4574: JDBC: Add NOT NULL for primary keys JIRA: https://jira.spring.io/browse/INT-4574 Some RDBMS don't allow have nullable columns for primary keys * Add NOT NULL for all the columns involved in primary keys **Cherry-pick to 4.3.x** * * Include index generation into the `schema.sql.vpp` * * Remove redundant blank line from generated scripts * * Fix INT_CHANNEL_MESSAGE primary generation # Conflicts: # spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/schema-mysql.sql # spring-integration-jdbc/src/main/resources/org/springframework/integration/jdbc/schema-oracle.sql # spring-integration-jdbc/src/main/sql/schema.sql.vpp
Back-ported to |
JIRA: https://jira.spring.io/browse/INT-4574
Some RDBMS don't allow have nullable columns for primary keys
Cherry-pick to 4.3.x