fix: Updated graph_types table so graph_subtype has no default value (#7285)

* fix: Updated graph_types table so graph_subtype has no default value

* added schema update
This commit is contained in:
Neil Lathwood
2017-09-05 05:04:33 +01:00
committed by Tony Murray
parent edae33507a
commit c16ca70c71
2 changed files with 2 additions and 1 deletions

View File

@@ -571,7 +571,7 @@ graph_types:
graph_descr: { Field: graph_descr, Type: varchar(255), 'Null': true, Default: 'NULL', Extra: '' }
graph_order: { Field: graph_order, Type: int(11), 'Null': false, Default: 'NULL', Extra: '' }
graph_section: { Field: graph_section, Type: varchar(32), 'Null': false, Default: 'NULL', Extra: '' }
graph_subtype: { Field: graph_subtype, Type: varchar(64), 'Null': false, Default: '', Extra: '' }
graph_subtype: { Field: graph_subtype, Type: varchar(64), 'Null': false, Default: 'NULL', Extra: '' }
graph_type: { Field: graph_type, Type: varchar(32), 'Null': false, Default: 'NULL', Extra: '' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [graph_type, graph_subtype, graph_section], Unique: true, Type: BTREE }

1
sql-schema/206.sql Normal file
View File

@@ -0,0 +1 @@
ALTER TABLE `graph_types` CHANGE `graph_subtype` `graph_subtype` varchar(64) NOT NULL;