Add option to remove NOT NULL constratins #4316

After creating database schema optionally remove NOT NULL
constraints on all but the primary-key columns.