Check out example codes for "allow null in psql". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE mytable ALTER COLUMN mycolumn DROP NOT NULL;

Learn ReactJs, React Native from akashmittal.com