The @CeManualMigration
annotation is used to mark manually created database migrations. Applying this annotation to a class ensures that the migration is automatically registered and included in the database migration process.
version: Int
Specifies the database schema version that this migration applies to.
Each manual migration should correspond to a specific version number to allow the system to apply migrations in the correct order.
kotlin
КопироватьРедактировать
@CeManualMigration(version = 3)
class AddNewFieldsMigration {
// Migration logic for database version 3
}
This annotation replaces the deprecated @DatabaseMigration
.
If you currently use @DatabaseMigration
, update it to @CeManualMigration
to avoid compilation errors.