Open MyuddinKhatri opened 2 months ago
@MyuddinKhatri What if we don't clear the cache? Are the schema definitions updated?
e? Are the schema definitions updated?
@agritheory I tried without clearing cache the scheme definitions got updated correctly. Can we remove clear_global_cache()
and proceed OR take a look into why this is happening,
One more thing to be noted if I run bench --site <SITE_NAME> execute app.file.load_customizations
then this runs without any error, it only fails if we add it in the after_migrate hook.
load_customizations
fails atclear_global_cache()
if added in hooksafter_migrate
If load_customizations from test_utils is executed from bench console then it runs fine.