declarationDefaultSql property
String?
get
declarationDefaultSql
Removes the managed SQLite default coercion when drafting a declaration.
Implementation
String? get declarationDefaultSql =>
defaultSql != null && storageType == 'TEXT' && decimalPrecision != null
? uncoerceDecimalDefault(
normalizeDefault(defaultSql)!,
decimalPrecision!,
decimalScale ?? 0,
) ??
defaultSql
: defaultSql != null && storageType == 'TEXT' && temporalPrecision != null
? uncoerceTemporal(
normalizeDefault(defaultSql)!,
temporalCollationKind(collation)!,
temporalPrecision!,
) ??
defaultSql
: defaultSql;