Populate the Database
Populate the Database
Configure Demo Data Sets
Depending on the Elastic Path release package, some or all of the following demo data sets may be included in the extensions\database\ext-data\src\main\resources\data folder:
- demo-geometrixx-data - Configured as the default data for AEM projects.
- demo-mobee-data - Configured as the default data for Cortex projects.
- demo-snapitup-data - Configured as the default data for Commerce Engine projects.
If you wish to load additional demo data in your local development environment, update extensions\database\ext-data\src\main\resources\environments\local\data-population.properties. Append mobee-data and/or snapitup-data to the liquibase.contexts property
Populate the Database
To create a new database schema and populate the database with demo data:
- With the command line, navigate to the extensions\database directory.
- Run the following command to run the Data Population tool:
mvn clean install -Preset-db
mvn clean install -Pupdate-dbFor more information, see Data Population - Patterns and Data Population - Extensions Data.
Database settings are defined in your .m2\settings.xml. If there are errors connecting to the database or creating a new schema, you may need to update these settings to match your local database settings.