ColumnDef

constructor(name: String, type: String, nullable: Boolean, defaultValue: String, migrateFrom: String = "", isPrimaryKey: Boolean = false, autoIncrement: Boolean = false, isUnique: Boolean = false)

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.