dim fields on facts are now by default not null

When auto generating the fact schema, all dim columns are now set to NOT NULL.

This is because REPLACE INTO doesn't work when a unique constraint is nullable.