Skip to content
代码片段 群组 项目
  • Kamil Trzciński's avatar
    f027557f
    Cells: Store databases and gitlab schema configuration in YAML · f027557f
    Kamil Trzciński 创作于
    The purpose of this change is to provide a better and more structured
    way to define `gitlab_schemas` and `database_connections`.
    
    This helps to define applied behavior for connections,
    and what schemas the connection holds, and how those
    are configured (load balancing, etc.).
    
    - Each DB and schema is named, and contains description.
    - Remove code duplication in `gitlab_schema` EE specs
    - Make `Database.db_config_names` to require passing `gitlab_schema`
      to ensure that we return configs only having this schema
    - Ensure that database connection order is the same
      as in `config/database.yml`
    
    Changelog: added
    f027557f
    历史
    Cells: Store databases and gitlab schema configuration in YAML
    Kamil Trzciński 创作于
    The purpose of this change is to provide a better and more structured
    way to define `gitlab_schemas` and `database_connections`.
    
    This helps to define applied behavior for connections,
    and what schemas the connection holds, and how those
    are configured (load balancing, etc.).
    
    - Each DB and schema is named, and contains description.
    - Remove code duplication in `gitlab_schema` EE specs
    - Make `Database.db_config_names` to require passing `gitlab_schema`
      to ensure that we return configs only having this schema
    - Ensure that database connection order is the same
      as in `config/database.yml`
    
    Changelog: added
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。
multiple_databases_helpers.rb 5.84 KiB