2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-10 10:55:19 +00:00
Commit Graph

145 Commits

Author SHA1 Message Date
Andrei Pavel
8883a639e8 [#2038] escape commas in kea-admin lease-dump mysql 2022-01-13 14:53:43 +02:00
Andrei Pavel
0d8bcb16a9 [#2038] kea-admin lease-dump mysql -6 now takes hwtype & hwaddr_source into account 2022-01-13 14:53:43 +02:00
Andrei Pavel
9832c56ad6 [#2038] kea-admin lease-dump mysql outputs a memfile-ready CSV 2022-01-13 14:53:03 +02:00
Andrei Pavel
f2e90d021c Revert "[#2038] kea-admin lease-export mysql"
This reverts commit 3dc6b3e43f.
2021-11-15 18:01:30 +02:00
Andrei Pavel
3dc6b3e43f [#2038] kea-admin lease-export mysql 2021-11-15 17:51:46 +02:00
Marcin Siodelski
a70a230aaf [#2094] Updated MySQL migration 12
The dhcp_client_class values are set to NULL when the options do not
belong to a class.
2021-09-20 23:15:03 +02:00
Marcin Siodelski
e8df2ff2e3 [#2094] Created MySQL schema version 12
The updated schema causes auto-deletion of options associated with
deleted client classes.
2021-09-20 23:14:02 +02:00
Andrei Pavel
48b63d8bf6 [#2063] DROP FOREIGN KEY for MySQL 5 compatibility 2021-08-30 14:55:14 +03:00
Thomas Markwalder
6b39b1dba3 [#1710] Added preferred liftime columns to MySQL v6 class
Modified:
src/bin/admin/tests/mysql_tests.sh.in
src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/upgrade_010_to_011.sh.in
2021-08-20 08:43:29 -04:00
Thomas Markwalder
ae325ed834 [#2030] Replaced indexes for mysql reclamation queries
configure.ac
    Added mysql/upgrade_x_00010_to_00011.sh.in

src/bin/admin/tests/mysql_tests.sh.in
    mysql_upgrade_test()  - added test of upgrade from 10 to 11.

src/lib/mysql/mysql_constants.h
    Updated schema version

src/share/database/scripts/mysql/Makefile.am
    Added upgrade_x_00010_to_00011.sh

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Added index replacements

src/share/database/scripts/mysql/upgrade_x_00010_to_00011.sh.in
    New file, upgrades from 10 to 11.
    Naming scheme changed to keep file order sane.
2021-08-17 09:54:35 -04:00
Marcin Siodelski
6351f21f60 [#1976] Server tag is now 64 characters long 2021-07-26 16:35:53 +02:00
Marcin Siodelski
7fa1447e1e [#1928] Use qualified column name in query 2021-07-21 10:49:50 +00:00
Andrei Pavel
ba7bba1fcc [#1928] Applied suggested change to comment 2021-07-21 10:49:50 +00:00
Andrei Pavel
7467628857 [#1928] Format spaces in MySQL schema scripts
(minor change)
2021-07-21 10:49:50 +00:00
Marcin Siodelski
0842008676 [#1928] Fix class ordering procedure
The comparison of follow_class_name values during the class update must
take into account the case when both values are NULL.
2021-07-21 10:49:50 +00:00
Marcin Siodelski
83b27f5668 [#1928] Guard against breaking class dependencies
Updated schema to check against the case when a class on which other
classes depend is moved behind these classes.
2021-07-21 10:49:50 +00:00
Andrei Pavel
b411f117bd [#1920] Applied suggestion
Corrected spacing.
2021-07-05 09:24:38 +00:00
Andrei Pavel
e775017915 [#1920] Apply 9 suggestion(s) to 4 file(s)
Corrected a couple of typos suggested in the review.
2021-07-05 09:24:38 +00:00
Marcin Siodelski
8a8f6b50c0 [#1920] Database schema for client classes
Extended database schema with new tables holding information about
configured client classes, ordering them, storing their dependencies and
associating them with the server tags. In addition, extended the tables
holding option definitions with an additional column class_id to optionally
associate an option definition with a class.
2021-07-05 09:24:38 +00:00
Andrei Pavel
417b7ae2cd [#1698] MySQL upgrade 9.6: a more simpler check
use a simpler select to check for column existence rather than
functions and procedures that may wind up in the database after the upgrade
2021-02-22 17:58:31 +02:00
Andrei Pavel
f0d62012f8 [#1698] move cache columns to 9.6 mysql upgrade 2021-02-22 17:58:31 +02:00
Andrei Pavel
23dda3f3f2 [#1709] mysql 9.5 -> 9.6: ALTER TABLE logs ADD id 2021-02-19 19:18:57 +02:00
Andrei Pavel
c53e135833 [#1656] 1.9.4 release: update copyrights 2021-01-25 13:52:09 +02:00
Andrei Pavel
96f049b111 [#1656] 1.9.4 release: spelling check 2021-01-25 13:52:09 +02:00
Francis Dupont
0d0ca1d54b [#1418] Finished rebase, did CB 2021-01-11 16:05:46 +01:00
Razvan Becheriu
8d05ba02b2 [#1405] merged first pass 2020-11-18 15:55:23 +02:00
Razvan Becheriu
76b4b058f7 [#1405] updated schema scripts 2020-11-18 15:55:23 +02:00
Razvan Becheriu
248ade8958 [#1405] fix update script 2020-11-18 15:55:23 +02:00
Razvan Becheriu
27e2a4350e [#1405] fixed create and drop schema tables 2020-11-18 15:55:22 +02:00
Razvan Becheriu
9e73f7b3e9 [#1405] added upgrade schema scripts 2020-11-18 15:55:22 +02:00
Marcin Siodelski
4b2396e908 [#1428] Fixed some typos
- regarless -> regardless
- faciliate -> facilitate
- removed spurious blank line

as a result of review.
2020-10-05 13:14:57 +00:00
Marcin Siodelski
1181298f2c [#1428] Delete multiple hosts by subnet/addr
Adjusted behavior of the del(subnet_id, addr) function in MySQL and
Postgres to delete multiple hosts having the same IPv4 or IPv6 address.
The MySQL schema had to be updated to use CASCADE action rather than
trigger to remove dependent options and IPv6 reservations.
2020-10-05 13:14:57 +00:00
Marcin Siodelski
99c44ffd31 [#1428] Allow non-unique IPs in MySQL and PgSQL
Introduced new host API function which allows for configuring selected
backends to accept non-unique IP reservations for multiple hosts. Support
for it was added in MySQL, Postgres and Kea config file. It is not
supported in Cassandra. New migrations for MySQL and Postgres have been
created.
2020-10-05 13:14:57 +00:00
Francis Dupont
e65bdbe400 [#1196] Updated schema version 2020-06-19 17:04:50 +02:00
Francis Dupont
77b8c7ea5a [#1196] Checkpoint: fixed mysql 2020-06-19 17:04:50 +02:00
Marcin Siodelski
895d7a2404 [#1242] Added missing indexes to options
The missing foreign keys have been added to the dhcp4_options and
dhcp6_options tables. This creates new db migration for MySQL, 9.2.
2020-05-20 13:23:01 +00:00
Michal Nowikowski
ba41c187b5 [#1098] updated more copyright dates 2020-01-27 19:52:58 +01:00
Francis Dupont
950f6455e0 [#946] Created new MySQL schema version 2020-01-27 13:52:07 +00:00
Francis Dupont
fe85bbc16b [#946] Addressed comments 2020-01-27 13:52:07 +00:00
Francis Dupont
cb75f05bf5 [#946] Updated MySQL schema 2020-01-27 13:52:07 +00:00
Francis Dupont
465cfbd920 [393-global-search-through-leases-by-mac-or-hostname-w-o-specifying-a-subnet-id] Moves lease hostnames to lower case 2019-10-25 17:26:23 +02:00
Francis Dupont
12f3c6d909 [392-search-of-reservations-by-hostname] Checkpoint: updated shcemas, todo tests 2019-10-15 11:45:32 +02:00
Thomas Markwalder
3efe07d261 [#853, !26-p] Update schema scripts and tests
src/bin/admin/tests/mysql_tests.sh.in
    Updated expected column names
    Added check of column names for 8.0 to 8.2 upgrade

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Changed array column to is_array in dhcp4/6_option_def tables

src/share/database/scripts/mysql/dhcpdb_drop.mysql
    Added missing drops for createOptionAuditDHCP4/6

src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in
    Changed array column to is_array in dhcp4/6_option_def tables

src/share/database/scripts/mysql/upgrade_8.1_to_8.2.sh.in
    Added logic to conditionally change column names
2019-08-26 09:39:05 -04:00
Marcin Siodelski
946faa16a5 [#845] Addressed review comments.
Added better commentary in the dhcpdb_create.mysql script and the 8.2
upgrade script.
2019-08-20 07:56:08 -04:00
Marcin Siodelski
a0b2fbcbd1 [#845] Changes to MySQL to update parent object when option is set.
Prior to this change, when an option is set or deleted, the owning subnet,
shared network or pool would not update its modification timestamp. As a
result, the server would not fecth the updated configuration.
2019-08-20 07:56:08 -04:00
Marcin Siodelski
818100a6cc [#659,!387] Changed "fields" to "columns" in the MySQL creation script.
As a result of review.
2019-08-16 17:47:34 +02:00
Francis Dupont
32bcae557c [659-how-configure-client-class-for-pools-in-db] Addressed not doc comments 2019-08-16 17:47:34 +02:00
Francis Dupont
c0be63572b [659-how-configure-client-class-for-pools-in-db] Checkpoint: code done, todo new unit tests 2019-08-16 17:47:34 +02:00
Marcin Siodelski
d16a20bae6 [#680,!426] Delete embedded shared network options when network is deleted. 2019-07-25 03:58:11 -04:00
Marcin Siodelski
e88273f6de [#680,!426] Deleted embedded DHCPv6 options when subnet is deleted. 2019-07-25 03:58:11 -04:00