From: Christian Hofstaedtler Date: Sun, 8 Feb 2015 19:09:26 +0000 (+0100) Subject: Add account changes to goraclebackend X-Git-Tag: rec-3.7.0~13^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc82e36ec412e86e013fdb89661bbe8aaccd7e73;p=pdns Add account changes to goraclebackend --- diff --git a/modules/goraclebackend/goraclebackend.cc b/modules/goraclebackend/goraclebackend.cc index 718f4a2be..fe2d5ec8c 100644 --- a/modules/goraclebackend/goraclebackend.cc +++ b/modules/goraclebackend/goraclebackend.cc @@ -81,7 +81,7 @@ public: declare(suffix, "master-zone-query", "Data", "select master from domains where name=:domain and type='SLAVE'"); - declare(suffix, "info-zone-query", "","select id,name,master,last_check,notified_serial,type from domains where name=:domain"); + declare(suffix, "info-zone-query", "","select id,name,master,last_check,notified_serial,type,account from domains where name=:domain"); declare(suffix, "info-all-slaves-query", "","select id,name,master,last_check,type from domains where type='SLAVE'"); declare(suffix, "supermaster-query", "", "select account from supermasters where ip=:ip and nameserver=:nameserver"); @@ -105,6 +105,7 @@ public: declare(suffix, "update-master-query", "", "update domains set master=:master where name=:domain"); declare(suffix, "update-kind-query", "", "update domains set type=:kind where name=:domain"); + declare(suffix, "update-account-query", "", "update domains set account=:account where name=:domain"); declare(suffix, "update-serial-query", "", "update domains set notified_serial=:serial where id=:domain_id"); declare(suffix, "update-lastcheck-query", "", "update domains set last_check=:last_check where id=:domain_id"); declare(suffix, "zone-lastchange-query", "", "select max(change_date) from records where domain_id=:domain_id"); @@ -130,7 +131,7 @@ public: declare(suffix, "delete-tsig-key-query","", "delete from tsigkeys where name=:key_name"); declare(suffix, "get-tsig-keys-query","", "select name,algorithm, secret from tsigkeys"); - declare(suffix, "get-all-domains-query", "Retrieve all domains", "select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR records.disabled=:include_disabled"); + declare(suffix, "get-all-domains-query", "Retrieve all domains", "select domains.id, domains.name, records.content, domains.type, domains.master, domains.notified_serial, domains.last_check, domain.account from domains LEFT JOIN records ON records.domain_id=domains.id AND records.type='SOA' AND records.name=domains.name WHERE records.disabled=0 OR records.disabled=:include_disabled"); declare(suffix, "list-comments-query", "", "SELECT domain_id,name,type,modified_at,account,\"comment\" FROM comments WHERE domain_id=:domain_id"); declare(suffix, "insert-comment-query", "", "INSERT INTO comments (id, domain_id, name, type, modified_at, account, \"comment\") VALUES (comments_id_sequence.nextval, :domain_id, :qname, :qtype, :modified_at, :account, :content)");