PrimaryKeyNullability
Primary key columns are NOT NULL on PostgreSQL and SQL Server whatever the schema declares, while SQLite allows NULL in non-integer keys. A key column left at the default nullability therefore takes the platform's behaviour: it is never relaxed and never reported as drift. Implements [MIG-VERIFY-BEFORE-UP-TO-DATE].
public static class PrimaryKeyNullability
Methods
UsesPlatformDefault(TableDefinition, ColumnDefinition)
public static bool UsesPlatformDefault(TableDefinition table, ColumnDefinition column)
True when column is a primary key column left at the default nullability.
Parameters:
| Name | Type | Description |
|---|---|---|
table |
TableDefinition |
|
column |
ColumnDefinition |
Returns: Boolean