-- Internal work, including Post-it cases, may be registered before a customer -- is attached. Customer-specific settlement is selected only after a customer -- exists, so the time row itself must allow a null customer reference. ALTER TABLE tmodule_times ALTER COLUMN customer_id DROP NOT NULL;