Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Populating the Database

Populating the Database

  • Ensure that the following modules in the extension module are built:
    • ext-core
    • ext-importexport
    • ext-data-population
When you create a valid catalog using an import XML file, you must save the file at rel-1.0-data/importexport module. For testing the application, you can use demo data that Elastic Path provides. For example, demo-geometrixx-data, demo-mobee-data or demo-snapitup-data. When you add valid data, ensure that the corresponding objects in the demo data are removed.

You can also create a test data that you don't want to use in the production environment at test-data/importexport module.

Use this procedure to populate database with valid data for production.
  1. To populate a new database or to re-populate an existing database, navigate to the extensions/database module and run the following command:
    mvn clean install -Preset-db
  2. To update an existing database, navigate to the extensions/database module and run the following command:
    mvn clean install -Pupdate-db

    When data population is complete, remove demo data details from the Liquibase change log and delete demo data modules.