SQLite attributesToSQL: Extend condition on when to set a DEFAULT value

Without the extended condition, renameColumnQuery sets DEFAULT 'null' instead of DEFAULT NULL or not even setting any default.