driebit / ginger

Ginger: awesome semantic CMS built on Zotonic
http://ginger.nl
Apache License 2.0
29 stars 9 forks source link

[base + modules] Issue #670 - Remove side effects in manage_schema functions #671

Open robvandenbogaard opened 4 years ago

robvandenbogaard commented 4 years ago

From #670

To avoid concurrency problems in loading data models between dependent modules, remove (database) side effects from manage_schema/2 functions, because in its current form the intended use is to return the data model declaration and let Zotonic take care of installing/updating in dependency order.

rl-king commented 4 years ago

ping @mworrell