The @CeMigrationEntity annotation is applied to entity classes to enable automatic generation of database migrations when the schema changes. This facilitates seamless evolution of the database without the need for manually defining migration scripts.


Parameters:


Example Usage:

kotlin
КопироватьРедактировать
@CeMigrationEntity(migrationVersion = 4)
@Entity
data class User(
    @PrimaryKey val id: Int,
    val name: String,
    val email: String
)


Key Benefits:


Migration Note

This annotation replaces the deprecated @MigrationEntityCE.

If you previously used @MigrationEntityCE, please replace it with @CeMigrationEntity to avoid compilation errors.