i have 2 tables, 1 table (Table1) has a field 'category' of type 'set'
which corresponds to table 2's(Table2) cat_id field.
Is there a way to automatically expand the 'set' values type in Table1 when i add a new category in Table2?
schema dump:
Table1
......
category set('1','2','3','4','5','6','7','8','9','10','11','12','13') NOT NULL default '',
Table2
.....
cat_id bigint(20) NOT NULL auto_increment,
PRIMARY KEY (cat_id)
summary
so when i add a new category to table2, it changes table1.category to:
category set('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15', and so on....) NOT NULL default '',
thanks.