on main help sign in
Remove completed TODO comment
commitde44fdd5f0cd4cb6a35e83725e7a63161d186690 authorfabianlindfors <fabian@flapplabs.se> dateThu 11 Jan 2024, 23:17 (3 years ago) parent97397c4
1 file changed−3
src/migrations/remove_column.rs−3
src/migrations/remove_column.rs−3
@@ -190,9 +190,6 @@ impl Action for RemoveColumn {
190190 "".to_string()
191191 };
192192
193− // TODO: If column is NOT NULL, remove the constraint and perform a NULL check in some other way.
194− // Otherwise, it's not possible to update the NOT NULL column from another table even in the same transaction.
195− // Either make the NULL check in here or maybe use a constraint trigger: https://www.postgresql.org/docs/9.0/sql-createconstraint.html.
196193 let query = format!(
197194 r#"
198195 CREATE OR REPLACE FUNCTION {trigger_name}()