Skip to content

Commit for specifying global vs tenant statements#751

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
CyanideDragon:main
May 14, 2026
Merged

Commit for specifying global vs tenant statements#751
zachdaniel merged 1 commit into
ash-project:mainfrom
CyanideDragon:main

Conversation

@CyanideDragon
Copy link
Copy Markdown
Contributor

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

issue #538 proposed solution

Certain custom statements, specifically custom enum types, become part of the tenant migration and fail to execute as they create a duplicate table. This should instead become global for the database instead. Manual intervention was a workaround needed for this. The solution is to add a configuration.

DataLayer.md:
Line 199: provides documentation for the new configuration boolean.

statement.ex:
Line 13: Add the new configuration
Lines 35-41: Add the behavior for the configuration. This is set default to false to allow normal behavior and backwards compatibility.

migration_generator.ex:
Lines 513-577: Modified the tenant operations to still allow normal behavior with the new configuration, and then the configuration assists in deciding if the file should be sent to the tenant or have public access.

Lines 4313, 4344-4346: Edit the JSON storage of the custom statement to include the new configuration, this way it is not lost on storage and retrieval.

@zachdaniel zachdaniel merged commit 659a464 into ash-project:main May 14, 2026
80 of 95 checks passed
@zachdaniel
Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants