For posterity only:
I declared my column name as follows:
ALTER TABLE <table_name> ADD <column_name> <datatype> NOT NULL DEFAULT 0
To successfully delete the name <column_name> programmatically, you must declare your column as follows:
ALTER TABLE <table_name> ADD <column_name> <data_type> NOT NULL CONSTRAINT <default_constraint_name> DEFAULT 0
To DROP <column_name>:
ALTER TABLE <table_name> DROP <default_constraint_name>ALTER TABLE <table_name> ALTER COLUMN <column_name> <data_type> NULLALTER TABLE <table_name> DROP COLUMN <column_name>
Zach Wymer Jul 11 '12 at 17:13 2012-07-11 17:13
source share