update schema -> fix creating new database from scratch

This commit is contained in:
zadam
2019-03-24 21:06:38 +01:00
parent d66ad4319e
commit f6413d095c
3 changed files with 103 additions and 95 deletions

View File

@@ -26,6 +26,10 @@ class Option extends Entity {
}
beforeSaving() {
if (!this.utcDateCreated) {
this.utcDateCreated = dateUtils.utcNowDateTime();
}
super.beforeSaving();
if (this.isChanged) {