diff --git a/dao/updates.go b/dao/updates.go index ea2e789..3b1dff9 100644 --- a/dao/updates.go +++ b/dao/updates.go @@ -70,9 +70,9 @@ func UpdateDatabase() { CreateDefaultOrganisation(ctx) Updates.Insert(ctx, "create_default_organisation") } - if !Updates.Check(ctx, "update_deposit_units_1") { + if !Updates.Check(ctx, "update_deposit_units_3") { UpdateDepositUnitNorms(ctx) - Updates.Insert(ctx, "update_deposit_units_1") + Updates.Insert(ctx, "update_deposit_units_3") } if !Updates.Check(ctx, "publish_roles_initial") { log.Print("publish_roles_initial") diff --git a/models/source.go b/models/source.go index acedc63..47160df 100644 --- a/models/source.go +++ b/models/source.go @@ -76,6 +76,7 @@ func (i *SourceCreate) Source() *Source { TakingID: i.TakingID, PaymentType: i.PaymentType, Money: i.Money, + Norms: i.Norms, Modified: vmod.NewModified(), } } @@ -87,6 +88,7 @@ func (i *SourceUpdate) Source() *Source { PaymentType: i.PaymentType, TakingID: i.TakingID, Money: i.Money, + Norms: i.Norms, } }