Database
Control Center provides a simple way to provision a database for your Vaadin application. It also allows you to manage database migrations and backups. These features allow you to easily set up and maintain a database for your application, ensuring that your data is always safe and up to date.
Provisioning a Database
You can enable the Database feature either during the deployment of your application or for an application that is already deployed. When enabled, Control Center automatically provisions a dedicated PostgreSQL database exclusively for that application. If your application is configured to use a Spring datasource, the necessary connection details are set up automatically.
Database Migrations
A database migration is a process that manages incremental, reversible changes to a database schema over time. Migrations allow you to evolve your database structure safely and predictably, ensuring that your application and its data remain consistent as requirements change.
Control Center integrates with Flyway for managing database migrations. When you enable the Database feature, Control Center automatically detects and applies Flyway migration scripts to the newly provisioned database. This ensures that your database schema is always up to date with your application’s requirements. For more information about Flyway migrations, see the Flyway documentation.
For more information about how to use Flyway migrations with Control Center, see the Flyway Migrations page.