This will not work if there are existing repos.  You will need to populate the task_name field before you make null inaccessible.  (Also, remember that in PostgreSQL you can't defer a "not null" check, so you have to create the column, populate it, and then set it not null.)