How deepakarora26/masco-ddl works
Project type and purpose
• This is a single-module Java/Maven command-line utility whose sole purpose is to apply and optionally roll back database schema changes (via Liquibase) against a MySQL database. It is not a full-stack app or service but a focused DB-migration tool triggered through Maven goals.
File structure
• pom.xml & dependency-reduced-pom.xml: define the Maven build, dependencies (liquibase-maven-plugin, MySQL JDBC driver), and configuration parameters (DB URL, user, password, defaultSchemaName).
• src/main/resources:
• ddl_changelog.xml: the master Liquibase changelog which references individual changeSets
• changelog/*.sql: forward-migration SQL scripts
• rollback/*.sql: reverse-migration SQL scripts
• No src/main/java code is shown, implying the default Liquibase Maven plugin handles execution; this utility largely delegates to Liquibase itself.
README for additional insights
• Confirms the use of Maven goals for execution (mvn verify) and rollback (mvn liquibase:rollback).
• Describes how to structure changeSets inside the XML and where to place SQL files.
• Emphasizes editing DB parameters in pom.xml.