A data definition language (DDL) uses statements to create a database schema. Keeping DDL in SQL script files gives the schema a single representation that can be versioned with the rest of the system. section 6.4.2
SQL scripts are familiar, but integration tests need a way to execute them from Java, and the scripts may not work across different database products. With Hibernate, schema export can instead use mapping documents when the SessionFactory is created. For example, hibernate.hbm2ddl.auto=create-drop enables schema creation and removal for integration tests. Generated columns may differ from hand-written choices, such as using VARCHAR(255) for a String field. section 6.4.2
Figure 6.6. Example directory structure with a set of delta change scripts for creating the database schema incrementally. The four scripts in the directory src/db/deltas will be applied in order according to the numerical prefix.
Numbered delta scripts illustrate how schema changes can be applied incrementally. section 6.4.2

