Commit 8267297d by Antti Tönkyrä

Merge branch 'feature/eventlog-idfield' into 'master'

Fix event log id field name

EventLog is GenericEntity, thus it's id field is "id", but in database the field is "log_id". It has accidentally worked because the SW used to do `SELECT lastval()` after insert. Now with ReturningPolicy `RETURNING id` fails.
2 parents da3b7b36 de65bd51
......@@ -183,8 +183,9 @@ public class BootstrapBean implements BootstrapBeanLocal {
"ALTER TABLE card_text_data DROP COLUMN font_style;",
"ALTER TABLE card_text_data ADD COLUMN font_style TEXT NOT NULL DEFAULT 'PLAIN';"
});
dbUpdates.add(new String[] {
"ALTER TABLE event_log RENAME log_id TO id;"
});
}
@EJB
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!