Category Archives: Без рубрики

Java.DBMigrationTools.What is the purpose of include and includeAll in changelogs?

✅ Short Answer **<include>** lets you include one specific changelog file into another **<includeAll>** lets you include all changelogs from a folder, automatically This helps you modularize and organize your migrations across many files.. 🔎 Detailed Explanation 🔹 include Used … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.How do you apply a Liquibase migration from the command line?

✅ Short Answer You apply a Liquibase migration using the update command from the CLI: This command tells Liquibase to: Connect to your database Read the changelog file Apply any changesets that haven’t been run yet 🔎 Step-by-Step Command Line … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.Can Liquibase generate a changelog from an existing database?

✅ Short Answer Yes, Liquibase can generate a changelog from an existing database schema using the generateChangeLog command.This reverse-engineers the current database structure into a changelog file (XML, YAML, JSON, or SQL) so you can start tracking and versioning it … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.How does Liquibase track which changes were applied?

✅ Short Answer Liquibase tracks applied changes by recording each successfully executed changeset in a special database table called DATABASECHANGELOG.Each entry includes metadata like id, author, filename, checksum, and execution timestamp. 🔎 Detailed Explanation When you run liquibase update, Liquibase: … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.What does runOnChange do?

✅ Short Answer runOnChange=”true” tells Liquibase to re-run a changeset if its definition changes, even if it was already applied. By default, Liquibase only runs each changeset once, but runOnChange forces Liquibase to track changes via checksums and re-apply the … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.What are preconditions in Liquibase?

✅ Short Answer Preconditions in Liquibase are conditions that must be true before a changeset or changelog is applied.If the precondition fails, Liquibase can be told to halt, warn, or continue, depending on your configuration. 🔎 Detailed Explanation A precondition … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.What is a DATABASECHANGELOG table?

✅ Short Answer The DATABASECHANGELOG table is a system table created and maintained by Liquibase.It tracks which changesets have already been executed, preventing duplicates and ensuring safe, repeatable database migrations. 🔎 Detailed Explanation Whenever Liquibase applies a changeset from your … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.Name some file formats Liquibase supports.

✅ Short Answer Liquibase supports the following changelog file formats: XML YAML JSON Formatted SQL 🔎 Details Format Description Common Use Case XML Most powerful and fully featured Traditional projects, fine-grained control YAML More human-readable, concise Modern teams, cleaner syntax … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.Can database changes be rolled back?

✅ Short Answer Yes, database changes can be rolled back — but only under specific conditions: ✅ In a transaction → changes can be rolled back automatically on failure. ❌ Most schema changes (DDL) like CREATE TABLE are not transactional … Continue reading

Posted in Без рубрики | Leave a comment

Java.DBMigrationTools.What happens when a migration fails?

✅ Short Answer When a migration fails: The migration process stops immediately The failed changeset is not marked as executed Any partial changes already applied by that changeset remain in the database unless you handle rollback manually ❗ No automatic … Continue reading

Posted in Без рубрики | Leave a comment