-
Notifications
You must be signed in to change notification settings - Fork 470
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
Issue 25184 adding systemtable resource #25470
Conversation
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 some comments
dotCMS/src/main/java/com/dotcms/business/SystemTableFactoryImpl.java
Outdated
Show resolved
Hide resolved
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.
Take a look, happy to discuss.
dotCMS/src/main/java/com/dotcms/business/SystemTableFactoryImpl.java
Outdated
Show resolved
Hide resolved
dotCMS/src/main/java/com/dotcms/rest/api/v1/system/SystemTableResource.java
Show resolved
Hide resolved
@Override | ||
public void executeUpgrade() throws DotDataException, DotRuntimeException { | ||
|
||
Try.of(()->new DotConnect().executeStatement("CREATE TABLE system_table (" |
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 should always add IF NOT EXISTS
when adding tables, e.g. CREATE TABLE IF NOT EXISTS system_table
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.
thinking about 2 nodes coming up up a cluster simultaneously.
Adding the system table resource