Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Separate globals config and content #411

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Mar 18, 2025

This pull request makes the required changes to accommodate the changes in statamic/cms#11585, including:

  • Added support for the new sites option on global sets
    • Statamic will now check against the sites in the sites array, rather than checking the existence of global variables in sites.
  • Drops the origin column on the global_set_variables table, as the origin now comes from the sites array.
  • Added an update script (UpdateGlobalVariables), mirroring the update script from my Core PR, but just touching the database rather than YAML files.
  • Updated some existing tests

There's still two failing tests locally, I'll get these fixed up tomorrow.
@duncanmcclean duncanmcclean marked this pull request as ready for review March 19, 2025 17:10
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.

1 participant