Update devices.bgpLocalAs field from varchar to int (#9098)

* Update devices.bgpLocalAs field from varchar to int

* Fixed reorder

* Fix to requested changes

* Fix reorder again
This commit is contained in:
TheGreatDoc
2018-08-28 21:27:18 +02:00
committed by Tony Murray
parent 810baeee3d
commit 192ed630bb
2 changed files with 2 additions and 1 deletions

View File

@@ -442,7 +442,7 @@ devices:
- { Field: timeout, Type: int(11), 'Null': true, Extra: '' }
- { Field: retries, Type: int(11), 'Null': true, Extra: '' }
- { Field: snmp_disable, Type: tinyint(1), 'Null': false, Extra: '', Default: '0' }
- { Field: bgpLocalAs, Type: varchar(16), 'Null': true, Extra: '' }
- { Field: bgpLocalAs, Type: 'int(10) unsigned', 'Null': true, Extra: '' }
- { Field: sysObjectID, Type: varchar(128), 'Null': true, Extra: '' }
- { Field: sysDescr, Type: text, 'Null': true, Extra: '' }
- { Field: sysContact, Type: text, 'Null': true, Extra: '' }

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

@@ -0,0 +1 @@
ALTER TABLE `devices` CHANGE `bgpLocalAs` `bgpLocalAs` INT UNSIGNED NULL DEFAULT NULL;