Use UUID and load data
Last updated: November 18, 2025
Liquibase uses Universally Unique Identifiers (UUID)s to define tables so they are more easily searchable.
Procedure
1
Define a table
For example, this changelog creates two tables:projectandproject_objectives.
It then uses theloadDataChange Type to load data into theproject_objectivestable:
loading
2
Add a CSV for Liquibase to insert
Add a CSV for Liquibase to insert with the same name as theloadDatafile above.
In this example, it isproject_objectives.csvin thetest-datafolder:
loading
3
Run liquibase update to create the table and insert the data.
Results
Tables are created by Liquibase successfully (changesets 1 and 2)
Liquibase inserts the data into that table (
project_objectives).Liquibase also supports adding UUIDs to the database successfully.