Interview questions
Question 194 of 254
FreeWhat is Flyway, and how does it manage database schema changes?
Database Migrations & Connection Pooling
Flyway is a database migration tool that applies versioned SQL (or Java-based) migration scripts in strict numerical order — each script is named following a convention like `V1__create_users_table.sql`, `V2__add_email_column.sql` — and tracks which migrations have already been applied in a dedicated schema history table (`flyway_schema_history`), so on startup it only runs the migrations that haven't been applied yet, ensuring the schema evolves predictably and identically across every environment.
Intermediate5 min

