Skip to content

Commit

Permalink
save schema logic update
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Feb 6, 2024
1 parent c0b03d4 commit 4f5745f
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,13 @@ public void saveSchema(String table, UserColumn column)

if (existing != null) {
schema.setContents(existing.getContents());
update(schema);
} else {
if (schema.getContents() == null) {
ContentsDao contentsDao = getContentsDao();
Contents contents = contentsDao.queryForId(table);
schema.setContents(contents);
}
if (schema.getContents() != null) {
create(schema);
}
} else if (schema.getContents() == null) {
ContentsDao contentsDao = getContentsDao();
Contents contents = contentsDao.queryForId(table);
schema.setContents(contents);
}
if (schema.getContents() != null) {
createOrUpdate(schema);
}

} else if (existing != null) {
Expand Down

0 comments on commit 4f5745f

Please sign in to comment.