integral
integral copied to clipboard
Add :initform in generate-defclass if the DB column has DEFAULT
- [ ] add
ALTER TABLE table_name ALTER column_name SET DEFAULT default_value;
- [ ] drop
ALTER TABLE table_name ALTER column_name DROP DEFAULT;
- [ ] create table
CREATE TABLE db_name.tbl_name (col_name1 data_type1 DEFAULT default_value, col_name2 data_type2, ...);
Is it really necessary though we have :initform
of defclass
to set the default value when make-instance
?