Updated schema for ipv4_mac to be optimal

This commit is contained in:
laf
2015-07-14 18:04:26 +01:00
parent ad9590df9b
commit 09fb454ff0

3
sql-schema/057.sql Normal file
View File

@@ -0,0 +1,3 @@
ALTER TABLE `ipv4_mac` CHANGE `mac_address` `mac_address` CHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , CHANGE `ipv4_address` `ipv4_address` CHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
ALTER TABLE `ipv4_mac` ADD INDEX ( `port_id`), ADD INDEX (`mac_address` )
ALTER TABLE `ipv4_mac` DROP INDEX `interface_id`, DROP INDEX `interface_id_2`