diff --git a/modules/api/src/main/resources/application.conf b/modules/api/src/main/resources/application.conf index e3f0094e0..401e69b00 100644 --- a/modules/api/src/main/resources/application.conf +++ b/modules/api/src/main/resources/application.conf @@ -29,6 +29,7 @@ akka.http { } vinyldns { + data-stores = ["mysql", "dynamodb"] mysql { settings { diff --git a/modules/api/src/main/resources/reference.conf b/modules/api/src/main/resources/reference.conf index 87d43b61d..9de3f3fc6 100644 --- a/modules/api/src/main/resources/reference.conf +++ b/modules/api/src/main/resources/reference.conf @@ -51,8 +51,6 @@ vinyldns { port = 9000 } - data-stores = ["mysql", "dynamodb"] - mysql { class-name = "vinyldns.mysql.repository.MySqlDataStoreProvider" diff --git a/modules/mysql/src/main/scala/vinyldns/mysql/repository/MySqlRecordSetRepository.scala b/modules/mysql/src/main/scala/vinyldns/mysql/repository/MySqlRecordSetRepository.scala index b75a60982..96e352b4b 100644 --- a/modules/mysql/src/main/scala/vinyldns/mysql/repository/MySqlRecordSetRepository.scala +++ b/modules/mysql/src/main/scala/vinyldns/mysql/repository/MySqlRecordSetRepository.scala @@ -233,6 +233,7 @@ object MySqlRecordSetRepository extends ProtobufConversions { case RecordType.SRV => 8 case RecordType.SSHFP => 9 case RecordType.TXT => 10 + case RecordType.SOA => 11 case RecordType.UNKNOWN => unknownRecordType } } diff --git a/modules/mysql/src/test/scala/vinyldns/mysql/repository/MySqlRecordSetRepositorySpec.scala b/modules/mysql/src/test/scala/vinyldns/mysql/repository/MySqlRecordSetRepositorySpec.scala index 23079a5d2..c13e42a53 100644 --- a/modules/mysql/src/test/scala/vinyldns/mysql/repository/MySqlRecordSetRepositorySpec.scala +++ b/modules/mysql/src/test/scala/vinyldns/mysql/repository/MySqlRecordSetRepositorySpec.scala @@ -32,6 +32,7 @@ class MySqlRecordSetRepositorySpec extends WordSpec with Matchers { fromRecordType(RecordType.SRV) shouldBe 8 fromRecordType(RecordType.SSHFP) shouldBe 9 fromRecordType(RecordType.TXT) shouldBe 10 + fromRecordType(RecordType.SOA) shouldBe 11 fromRecordType(RecordType.UNKNOWN) shouldBe unknownRecordType } }