Test Plan:
1) Ensure you're database is prior to version 18.06.00.040
2) Ensure 'strict_sql_modes' is enabled
3) Run updatedatabase
4) See no errors during upgrade
5) Run a fresh install
6) Note no errors during database installation
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
--
CREATE TABLE IF NOT EXISTS stockrotationrotas (
- rota_id int(11) auto_increment, -- Stockrotation rota ID
+ rota_id int(11) auto_increment, -- Stockrotation rota ID
title varchar(100) NOT NULL, -- Title for this rota
- description text NOT NULL default '', -- Description for this rota
+ description text NOT NULL, -- Description for this rota
cyclical tinyint(1) NOT NULL default 0, -- Should items on this rota keep cycling?
active tinyint(1) NOT NULL default 0, -- Is this rota currently active?
PRIMARY KEY (`rota_id`)
CREATE TABLE `stockrotationrotas` (
`rota_id` int(11) auto_increment, -- Stockrotation rota ID
`title` varchar(100) NOT NULL, -- Title for this rota
- `description` text NOT NULL default '', -- Description for this rota
+ `description` text NOT NULL, -- Description for this rota
`cyclical` tinyint(1) NOT NULL default 0, -- Should items on this rota keep cycling?
`active` tinyint(1) NOT NULL default 0, -- Is this rota currently active?
PRIMARY KEY (`rota_id`),