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

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.

loading
2

Add a CSV for Liquibase to insert

Add a CSV for Liquibase to insert with the same name as the loadData file above. In this exmple, it is project_objectives.csv in the test-data folder:

CSV to insert
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.