Skip to content

Conversation

@lucaslaurent04
Copy link
Collaborator

Allows to import data from an old database to the eQual database by mapping fields using a json configuration file:

Example of init/import-config.json for a package named bakery:

[
    {
        "entity": "bakery\\Bread",
        "old_table": {
            "table": "breads",
            "id_field": "id_bread",
            "fields": {
                "id_bread": "integer",
                "label": "string",
                "price": "float"
            }
        },
        "data_map": {
            "id": "id_bread",
            "name": "label",
            "price": "price"
        }
    }
]

@cedricfrancoys cedricfrancoys merged commit 756f04d into equalframework:dev-2.0 Mar 15, 2024
@lucaslaurent04 lucaslaurent04 deleted the feature/import-old-database-data-to-equal-package branch March 27, 2024 13:01
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