From de44fdd5f0cd4cb6a35e83725e7a63161d186690 Mon Sep 17 00:00:00 2001 From: fabianlindfors Date: Thu, 11 Jan 2024 23:17:57 +0100 Subject: [PATCH] Remove completed TODO comment --- src/migrations/remove_column.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/migrations/remove_column.rs b/src/migrations/remove_column.rs index 20322d6..4cb1c08 100644 --- a/src/migrations/remove_column.rs +++ b/src/migrations/remove_column.rs @@ -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}()