integral icon indicating copy to clipboard operation
integral copied to clipboard

Add :initform in generate-defclass if the DB column has DEFAULT

Open rudolph-miller opened this issue 10 years ago • 1 comments

  • [ ] 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, ...);

rudolph-miller avatar Feb 05 '15 15:02 rudolph-miller

Is it really necessary though we have :initform of defclass to set the default value when make-instance?

fukamachi avatar Feb 07 '15 05:02 fukamachi