9 Commits

Author SHA1 Message Date
c13035a344 Refactor: Use more specific type in argument of DB.Update (#162)
The DB.Update function takes a type of ACMETxt. However, the function
only requires the Value and Subdomain fields.

Refactor the function such that it takes ACMETxtPost instead of the full
ACMETxt record. This will simplify extraction of txt-record related
logic from the db code.
2019-06-12 15:41:02 +03:00
d18cd65374 db_test: fix 'recieve' typo 2018-03-26 17:22:23 -04:00
733245fb3d Support for multiple TXT records per subdomain (#29)
* Support for multiple TXT records per subdomain and database upgrade functionality

* Linter fixes

* Make sure the database upgrade routine works for PostgreSQL

* Move subdomain query outside of the upgrade transaction
2018-01-22 09:53:07 +02:00
c3ac7a211c DB code for CIDR handling 2016-12-01 00:03:08 +02:00
31a82e680f Better DB test coverage 2016-11-28 01:55:57 +02:00
5072b231af Refactored tests 2016-11-27 19:41:54 +02:00
ba63bad793 Refactoring 2016-11-23 22:12:43 +02:00
546a35ed00 Added PostgreSQL support 2016-11-23 22:12:42 +02:00
22db9a8209 DB tests 2016-11-23 22:12:42 +02:00