| 54 | Нужно добавить столбец `version`(версия изделия) в таблицу products. |
| 55 | Терминальная команда: alter table products add column `version` int default null; |
| 56 | |
| 57 | |
| 58 | {{{ |
| 59 | +-------------+--------------------------------------------------------------------------+------+-----+---------+----------------+ |
| 60 | | Field | Type | Null | Key | Default | Extra | |
| 61 | +-------------+--------------------------------------------------------------------------+------+-----+---------+----------------+ |
| 62 | | UID | int | NO | PRI | NULL | auto_increment | |
| 63 | | type | varchar(100) | YES | | Плата | | |
| 64 | | name | varchar(100) | YES | | NULL | | |
| 65 | | serial | varchar(100) | NO | UNI | NULL | | |
| 66 | | date | date | YES | | NULL | | |
| 67 | | owner | varchar(100) | YES | | NULL | | |
| 68 | | location | enum('stock','shipped','develop','isolator','nelikvid','work','nowhere') | NO | | NULL | | |
| 69 | | testing | enum('ok','fail','notest') | YES | | notest | | |
| 70 | | otk | enum('ok','fail','nocheck') | YES | | nocheck | | |
| 71 | | comment | longtext | YES | | NULL | | |
| 72 | | shelfdrawer | varchar(12) | YES | | NULL | | |
| 73 | | version | int | YES | | NULL | | |
| 74 | +-------------+--------------------------------------------------------------------------+------+-----+---------+----------------+ |
| 75 | }}} |
| 76 | |
| 77 | |