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

Multi db access #1437

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

Commits on Apr 10, 2024

  1. Mirror requirements package.yml => composer.json

    Mirror the PHP and Redaxo core requirements from package.yml to
    composer.json.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    afcdfa9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6e44fc View commit details
    Browse the repository at this point in the history
  3. Make the assignment null safe

    Don't throw an exception when no related table or field is set.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    ee1d4a8 View commit details
    Browse the repository at this point in the history
  4. SQL: Add db_id to the set of managed table data

    Let yform track the db_id of a table.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    ba819d4 View commit details
    Browse the repository at this point in the history
  5. Add db_id to core yform

    Allow to set the database id for yform by passing the parameter
    $param['db_id'] to the constructor or by calling the method
    `setDatabaseId()`
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    8e0c220 View commit details
    Browse the repository at this point in the history
  6. Add db_id to table manager

    Use the db_id from yform. Pass the db_id to rex_sql calls and add a
    getter to get the database id for managed tables.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e6f49bd View commit details
    Browse the repository at this point in the history
  7. Change all calls to rex_sql to use db_id

    All calls that are made by classes using yform are now aware of db_id
    and use the proper ID when querying the database.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    46797c4 View commit details
    Browse the repository at this point in the history
  8. Make the table manager forms aware of db_id

    Editing and migrating tables make use of db_id.
    dgrothaus-mc committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    1d7d4e6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d5e4a93 View commit details
    Browse the repository at this point in the history