I take blank=True
and null=True
to mean that empty strings and NULL values should be allowed. These are the defaults, you don't need to do anything extra.
For max_length=200
you could use varchar(200)
instead of text
:
ALTER TABLE store_products ADD COLUMN description varchar(200);
But I generally prefer the data type text
in combination with a CHECK
constraint:
ALTER TABLE store_products ADD COLUMN description text;
ALTER TABLE store_products ADD CONSTRAINT description_max200
CHECK (length(description) <= 200);