Remove completed TODO comment

This commit is contained in:
fabianlindfors 2024-01-11 23:17:57 +01:00
parent 97397c4d0a
commit de44fdd5f0

View File

@ -190,9 +190,6 @@ impl Action for RemoveColumn {
"".to_string()
};
// TODO: If column is NOT NULL, remove the constraint and perform a NULL check in some other way.
// Otherwise, it's not possible to update the NOT NULL column from another table even in the same transaction.
// Either make the NULL check in here or maybe use a constraint trigger: https://www.postgresql.org/docs/9.0/sql-createconstraint.html.
let query = format!(
r#"
CREATE OR REPLACE FUNCTION {trigger_name}()