2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-18 14:00:15 +00:00
Commit Graph

32 Commits

Author SHA1 Message Date
Thomas Markwalder
5ed24d5839 [#2909] Mysql v6 addresses to binary
lease6.address and ipv6_reservations.address columns
changed from varbinary(39) to binary(16).

lease6.binaddr column removed

deleted:    src/share/api/binary-address6-upgrade.json
new file:   src/share/database/scripts/mysql/upgrade_018_to_019.sh.in

configure.ac
   added new mysql upgrade script

doc/sphinx/arm/hooks-lease-query.rst
    removed doc for binary-address6-upgrade command

src/bin/admin/tests/mysql_tests.sh.in
    modified to use inet6_aton/ntoa as now needed
    Updated to test upgrage

src/lib/dhcpsrv/lease_mgr.h
    LeaseMgr::upgradeBinaryAddress6() - no longer
    abstract, provides a dummy implemention

src/lib/dhcpsrv/mysql_host_data_source.cc
    Change v6 reservation address to binary

src/lib/dhcpsrv/mysql_lease_mgr.*
    Remove lease6.binaddr and uses
    Change lease6.address to binary

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

src/share/api/api_files.mk
    Remove binary-address6-upgrade.json

src/share/database/scripts/mysql/Makefile.am
    Add upgrade script

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Modify lease6, ipv6_reservations, and impacted functions
2023-06-21 14:21:08 -04:00
Razvan Becheriu
82c33e04b1 [#2786] addressed comments 2023-05-09 14:26:04 +03:00
Marcin Siodelski
dfd3aff945 [#2823] DB schemas include allocators 2023-04-19 18:26:04 +02:00
Francis Dupont
acc0c57736 [#2752] Rebased new schemas 2023-03-30 15:03:47 +02:00
Marcin Godzina
769b3583ab [#2809] release changes 2023-03-24 23:51:18 +01:00
Francis Dupont
7efe36286c [#719] Reapplied patch 2023-03-15 13:49:21 +01:00
Thomas Markwalder
df14c7593e [#2299] Create subnet audit entry when network is deleted
Update subnets in shared-network BDEL trigger rather than
    relying on foreign key update action

new files:
    src/share/database/scripts/mysql/upgrade_013_to_014.sh.in
    src/share/database/scripts/pgsql/upgrade_011_to_012.sh.in

configure.ac
    added:
    src/share/database/scripts/mysql/upgrade_013_to_014.sh
    src/share/database/scripts/pgsql/upgrade_011_to_012.sh

src/bin/admin/tests/mysql_tests.sh.in
    added 13 to 14 checks
src/bin/admin/tests/pgsql_tests.sh.in
    added 11 to 12 checks

src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp6_unittest.cc
    enabled disabled tests

src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.cc
    GenericConfigBackendDHCPv4Test::getAllSharedNetworks4Test()
    - updated expected audit entry order

src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
    GenericConfigBackendDHCPv6Test::getAllSharedNetworks6Test()
    - updated expected audit entry order

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

src/lib/pgsql/pgsql_connection.h
    Updated schema version to 12

src/share/database/scripts/mysql/.gitignore
src/share/database/scripts/mysql/Makefile.am
    added upgrade_013_to_014.sh

src/share/database/scripts/mysql/dhcpdb_create.mysql
    subnet rows are now updated directly in shared-network
    BEFORE delete triggers (v4 and v6)

src/share/database/scripts/pgsql/Makefile.am
    added upgrade_011_to_012.sh

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    subnet rows are now updated directly in shared-network
    BEFORE delete triggers (v4 and v6)
2022-06-03 10:47:16 -04:00
Andrei Pavel
cd64f52014 [#2290] release changes 2022-01-25 18:17:54 +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
Thomas Markwalder
5d79ff7ade [#2094] Updated schema version constant
modified:   ../../mysql/mysql_constants.h
2021-09-20 23:15:03 +02: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
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
dab966b3ed [#1772] changelog, copyrights, messages 2021-03-29 21:47:05 +03:00
Andrei Pavel
d9d143b425 [#1709] add test for "ALTER TABLE logs ADD id" 2021-02-19 19:18:59 +02:00
Razvan Becheriu
c8f9a95bc3 [#1405] fixed unittests 2020-11-18 15:55:22 +02: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
Marcin Siodelski
6210ac31eb [#1242] Adjusted config backend
The new constraints require that we explicitly delete options by subnet id
or subnet prefix upon the subnet update.
2020-05-20 13:23:01 +00:00
Razvan Becheriu
5ee9b348c3 [#1071] refactored 2020-02-21 09:15:14 +01:00
Razvan Becheriu
b94930ea3d [#1071] fixed compilation for mysql 8.x 2020-02-21 09:15:14 +01:00
Razvan Becheriu
9be381b796 [#1071] static assert if sizeof(bool) is not 1 2020-02-21 09:15:14 +01: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
12f3c6d909 [392-search-of-reservations-by-hostname] Checkpoint: updated shcemas, todo tests 2019-10-15 11:45:32 +02:00
Marcin Siodelski
f27f45ec3b [#680,!426] Delete embedded options when subnet gets deleted in mysql_cb. 2019-07-25 03:58:11 -04:00
Francis Dupont
8641448c41 [295-min-max-lease-time-configuration-options] Moved MySQL schema updates to version 8.1 2019-06-22 10:05:24 -04:00
Francis Dupont
7f4847e9a4 [354-compilation-with-mysql-fails-on-fedora-29] Solved other issues 2019-02-07 17:02:22 -05:00
Francis Dupont
ef559d3c38 [354-compilation-with-mysql-fails-on-fedora-29] Added HAVE_MYSQL_MY_BOOL 2019-02-07 17:02:22 -05:00
Marcin Siodelski
c926fa96f4 [#396,!205] Fix issues in the core tests related to schema changes. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
479791d759 [#93,!35] Extended MySqlConnection with generic query functions. 2018-10-08 16:39:22 +02:00