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
52a34b7cce
[ #1698 ] check cache columns in upgrade script
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
5e6edf517b
[ #1681 ] fix database scripts being installed twice
...
which is unnecessary, but would also result in a race condition if
make-installed on multiple threads wich might also be the default on
some systems
2021-02-17 15:02:19 +00:00
Andrei Pavel
35d14a6246
[ #1681 ] x permission on scripts in install dir
2021-02-16 15:58:35 +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
Wlodek Wencel
a3b7ddabe4
[ #1609 ] 1.9.3 changes
2020-12-14 04:20:40 -08:00
Andrei Pavel
5e81f486ec
[ #1574 ] fix mysql/upgrade_8.1_to_8.2.sh.in
2020-12-14 12:08:39 +02:00
Andrei Pavel
c027050d89
[ #1574 ] shell scripts: remove the use of lists
2020-12-14 12:08:11 +02:00
Andrei Pavel
232fc97021
[ #1574 ] shell scripts: convert redirection to pipe
2020-12-14 12:08:11 +02:00
Andrei Pavel
9ca8b2fcc7
[ #1574 ] make all shell scripts POSIX compliant
...
* solve all shellcheck warnings
* shebang in all scripts
* set -eu everywhere
* make scripts callable from everywhere
* quote variables to prevent globbing and word splitting
* add missing copyrights
* remove unused variables
* use $() instead of backticks ``
... and so on
2020-12-14 12:08:11 +02:00
Andrei Pavel
08ded64dec
[ #1554 ] update copyright dates
2020-11-23 13:40:41 +02:00
Razvan Becheriu
6980a97701
[ #1405 ] addressed review
2020-11-18 15:55:24 +02:00
Razvan Becheriu
f06b3ffde9
[ #1405 ] ignore out of pool if in subnet is disabled
2020-11-18 15:55:24 +02:00
Razvan Becheriu
8d05ba02b2
[ #1405 ] merged first pass
2020-11-18 15:55:23 +02:00
Razvan Becheriu
051aededa4
[ #1405 ] added unittests for schema update
2020-11-18 15:55:23 +02:00
Razvan Becheriu
67f5492bac
[ #1405 ] addressed comments
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
f90a40f037
[ #1405 ] updated upgrade script
2020-11-18 15:55:22 +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
Razvan Becheriu
f8cb0c6ffd
[ #1469 ] fixed warnings
2020-10-16 11:02:07 +03:00
Razvan Becheriu
250bbbed49
[ #1469 ] addressed comments
2020-10-16 10:53:44 +03:00
Razvan Becheriu
84272f234f
[ #1469 ] added missing entries
2020-10-16 10:39:46 +03:00
Razvan Becheriu
50bc8aaecc
[ #1469 ] added missing entries
2020-10-16 10:39:46 +03: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
898beae217
[ #1196 ] Fixed after migration cleanup
2020-06-19 17:04:50 +02: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
Francis Dupont
4d4bc39170
[ #1161 ] Added last mysql update script to git ignore
2020-03-27 20:53:20 +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
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