Skip to content

Commit

Permalink
Added logging statements for the database upgrades. This seems like a…
Browse files Browse the repository at this point in the history
… pretty good idea in general!
  • Loading branch information
csrster committed Sep 7, 2023
1 parent 4b810c5 commit 867f343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ public void createEavAttributeTable(int toVersion) {

@Override
protected void migratePartialharvestsv1tov2() {
log.info("Migrating partialharvest table version 1 to 2 by adding crawlertraps column.");
String[] sqlStatements = {"ALTER TABLE partialharvests ADD COLUMN crawlertraps CLOB(64M)"};
HarvestDBConnection.updateTable("partialharvests", 2, sqlStatements);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ public void createEavAttributeTable(int toVersion) {

@Override
protected void migratePartialharvestsv1tov2() {
log.info("Migrating partialharvest table version 1 to 2 by adding crawlertraps column.");
String[] sqlStatements = {"ALTER TABLE partialharvests ADD COLUMN crawlertraps LONGTEXT"};
HarvestDBConnection.updateTable("partialharvests", 2, sqlStatements);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ public void createEavAttributeTable(int toVersion) {

@Override
protected void migratePartialharvestsv1tov2() {
log.info("Migrating partialharvest table version 1 to 2 by adding crawlertraps column.");
String[] sqlStatements = {"ALTER TABLE partialharvests ADD COLUMN crawlertraps text"};
HarvestDBConnection.updateTable("partialharvests", 2, sqlStatements);
}
Expand Down

0 comments on commit 867f343

Please sign in to comment.