Skip to content

Commit

Permalink
[#89,!22] Auto increment option id.
Browse files Browse the repository at this point in the history
  • Loading branch information
msiodelski committed Sep 18, 2018
1 parent 4c4a676 commit 1cffada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/share/database/scripts/mysql/dhcpdb_create.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ CREATE TABLE IF NOT EXISTS dhcp4_subnet_server (


# Modify the primary key to BINGINT as other tables have.
ALTER TABLE dhcp4_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE dhcp4_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;

# Add conifguration backend specific columns.
ALTER TABLE dhcp4_options
Expand Down Expand Up @@ -1251,7 +1251,7 @@ CREATE TABLE IF NOT EXISTS dhcp6_pool (
) ENGINE=InnoDB;

# Modify the primary key to BINGINT as other tables have.
ALTER TABLE dhcp6_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE dhcp6_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;

# Add conifguration backend specific columns.
ALTER TABLE dhcp6_options
Expand Down
4 changes: 2 additions & 2 deletions src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ CREATE TABLE IF NOT EXISTS dhcp4_subnet_server (
# Modify the primary key to BINGINT as other tables have.
#
ALTER TABLE dhcp4_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE dhcp4_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;
# Add conifguration backend specific columns.
ALTER TABLE dhcp4_options
Expand Down Expand Up @@ -562,7 +562,7 @@ CREATE TABLE IF NOT EXISTS dhcp6_pool (
) ENGINE=InnoDB;
# Modify the primary key to BINGINT as other tables have.
ALTER TABLE dhcp6_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE dhcp6_options MODIFY option_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;
# Add conifguration backend specific columns.
ALTER TABLE dhcp6_options
Expand Down

0 comments on commit 1cffada

Please sign in to comment.