1. 20 Apr, 2017 2 commits
  2. 14 Apr, 2017 1 commit
  3. 12 Apr, 2017 1 commit
  4. 14 Dec, 2016 1 commit
  5. 12 Sep, 2016 1 commit
  6. 26 Aug, 2016 1 commit
  7. 23 Aug, 2016 1 commit
  8. 17 Aug, 2016 1 commit
    • Marcin Siodelski's avatar
      [4489] Addressed review comments. · 4a8efcb4
      Marcin Siodelski authored
      The only review item not addressed with this commit is the
      implementation of unit test that operates on the read only
      database, i.e. the database containing tables on which the
      given user only has SELECT privileges.
      4a8efcb4
  9. 08 Jul, 2016 1 commit
  10. 23 Jun, 2016 2 commits
  11. 25 May, 2016 1 commit
  12. 28 Apr, 2016 1 commit
  13. 12 Apr, 2016 1 commit
  14. 01 Apr, 2016 2 commits
  15. 31 Mar, 2016 1 commit
  16. 17 Dec, 2015 1 commit
  17. 16 Dec, 2015 3 commits
    • Thomas Markwalder's avatar
      [4237] Fixes #4238, adds lease dump order by, bumps MySQL schema to 4.1 · 36e5204e
      Thomas Markwalder authored
      Bumps MySQL schema version from 4.0 to 4.1.
      
      Fixes the issue spelled out in 4238 by adding an entry for hardware
      address source of zero. This change was added here to limit the
      number of schema version bumps.
      
      Changes the MySQL lease dump functions to order by the lease address.
      This ensures the dumps always ordered in a predictable manner.
      
      src/bin/admin/scripts/mysql/upgrade_4.0_to_4.1.sh.in
          New file to upgrade from 4.0 to 4.1
      
      configure.ac
          Added entry for mysql/upgrade_4.0_to_4.1.sh
      
      src/bin/admin/scripts/mysql/Makefile.am
          Added entry form upgrade_4.0_to_4.1.sh
      
      src/bin/admin/scripts/mysql/dhcpdb_create.mysql
          Added insert of HWADDR_SOURCE_UNKNOWN  into lease_hwaddr_source
          Added order by clauses to lease4DumpData and lease6DumpData
          Updated schema version from 4.0 to 4.1
      
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_upgrade_test()
              Added test for 4.0 to 4.1 upgrade
              Changed final version check to 4.1
      36e5204e
    • Marcin Siodelski's avatar
      3d18318f
    • Marcin Siodelski's avatar
  18. 11 Dec, 2015 1 commit
    • Thomas Markwalder's avatar
      [4237] Added MySQL ENGINE to all table creates, fixed hosts table not dropping · 6bd7ac72
      Thomas Markwalder authored
      All MySQL text to create tables sets ENGINE to INNODB
      MySQL unit tests now reliably drop the "hosts" table
      
      src/bin/admin/scripts/mysql/dhcpdb_create.mysql
          Added "ENGINE = INNODB" table creates where needed
      
      src/bin/admin/scripts/mysql/upgrade_1.0_to_2.0.sh.in
      src/bin/admin/scripts/mysql/upgrade_2.0_to_3.0.sh.in
          Added "ENGINE = INNODB" table creates where needed
      
      src/bin/admin/tests/data/mysql.lease6_dump_test.reference.csv
          Reversed order of reference file to match INNODB result
      
      src/bin/admin/tests/dhcpdb_create_1.0.mysql
          Added "ENGINE = INNODB" table creates where needed
      
      src/bin/admin/tests/mysql_tests.sh.in
          Removed unnecessary explicit drop of ipv6_reservations
      
      src/lib/dhcpsrv/tests/mysql_schema.cc
          Added MySQL error output on statement failures
      
      src/lib/dhcpsrv/tests/schema_mysql_copy.h
          const char* destroy_statement[]
              Added statement to turn off referential integrity checks, so all
              tables will get dropped.  "hosts" table was being left behind.
      
          const char* create_statement[]
              Added "ENGINE = INNODB" table creates where needed
      6bd7ac72
  19. 15 Oct, 2015 3 commits
  20. 06 Oct, 2015 1 commit
    • Thomas Markwalder's avatar
      [3967] Added lookup of hwaddr_source name to lease6 dump · 52476f73
      Thomas Markwalder authored
      src/bin/admin/scripts/mysql/dhcpdb_create.mysql
          lease6DumpData() -  added lookup of lease_hwaddr_source name
      
      src/bin/admin/scripts/mysql/upgrade_3.0_to_4.0.sh.in
          lease6DumpData() -  added lookup of lease_hwaddr_source name
      
      src/bin/admin/tests/data/mysql.lease6_dump_test.reference.csv
          added hwaddr_source names to test reference data
      
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_lease6_dump_test() - changed hwaddr_source test values
      52476f73
  21. 01 Oct, 2015 1 commit
    • Thomas Markwalder's avatar
      [3916] Use stored procedures for MySQL lease dumps · 9ca02bd6
      Thomas Markwalder authored
      src/bin/admin/kea-admin.in
          src/bin/admin/kea-admin.in
              get_dump_query() - modified SQL text returned for MySQL backend
              which calls stored procedures to produce lease dumps  rather than
              SQL text from lease_dump_<version>.sh
      
      src/bin/admin/scripts/mysql/Makefile.am
          removed entries for leave_dump_<version>.sh files
      
      src/bin/admin/scripts/mysql/dhcpdb_create.mysql
          Added sql to create stored procedures for lease dumps:
              lease4DumpHeader
              lease4DumpData
              lease6DumpHeader
              lease6DumpData
      
      src/bin/admin/scripts/pgsql/dhcpdb_create.pgsql
          Changes table references in lease6DumpData() to match
          convention used in MySQL lease6DumpData()
      
      src/bin/admin/tests/mysql_tests.sh.in
          mysql_lease4_dump_test() - change lease4 test leases to have differing
          values for lease4.state
      
          mysql_lease6_dump_test() - change lease4 test leases to have differing
          values for lease6.state
      
      mysql.lease4_dump_test.reference.csv
      mysql.lease6_dump_test.reference.csv
          Changed reference files to use lease_state.name values rather than
          lease.state to match dump query output and  new test data
      
      src/bin/admin/scripts/mysql
          deleted the following files as they are now obsolete
              leave_dump_1.0.sh
              leave_dump_2.0.sh
              leave_dump_3.0.sh
              leave_dump_4.0.sh
          Makefile.am - removed entries for deleted lease dump scripts
      9ca02bd6
  22. 15 Sep, 2015 1 commit
  23. 09 Sep, 2015 1 commit
  24. 07 Sep, 2015 1 commit
  25. 25 Jun, 2015 1 commit
  26. 15 May, 2015 1 commit
  27. 16 Apr, 2015 1 commit
  28. 05 Dec, 2014 1 commit
    • Tomek Mrugalski's avatar
      [3599] Changes after review · 35357a30
      Tomek Mrugalski authored
       - mysql/upgrade_1.0_to_2.0.sh renamed to .in
       - header added to admin-utils.sh, revoked exec bit
       - kea-admin clarified (db => lease db)
       - kea-admin manpage corrected
       - lease6_hwaddr_source renamed to lease_hwaddr_source
       - mysql_tests are now working without installation
      35357a30
  29. 05 Nov, 2014 2 commits
  30. 03 Nov, 2014 1 commit
  31. 11 Sep, 2013 1 commit
  32. 26 Aug, 2013 1 commit