ColumnDef
data class ColumnDef(val name: String, val type: String, val nullable: Boolean, val defaultValue: String, val migrateFrom: String = "", val isPrimaryKey: Boolean = false, val autoIncrement: Boolean = false, val isUnique: Boolean = false)
Full description of one expected column, generated by the processor into each repository's createTable() so SchemaMigrator can diff and migrate automatically.
Parameters
defaultValue
SQL literal for NOT NULL ALTER TABLE ADD COLUMN ("0", "0.0", "''", "X''"). Empty for nullable columns.
migrateFrom
Old column name when a property was renamed. Migrator copies data from migrateFrom into name then drops the old column.
isPrimaryKey
True if this column is the primary key.
autoIncrement
True if the PK is INTEGER PRIMARY KEY AUTOINCREMENT.
isUnique
True if the column has a UNIQUE constraint.