Final Fixes
This commit is contained in:
parent
d9f4b20448
commit
61d7ea9a51
|
@ -176,7 +176,7 @@ if(isset($input->action) && $input->action == "saveSoa") {
|
||||||
|
|
||||||
$db->beginTransaction();
|
$db->beginTransaction();
|
||||||
|
|
||||||
$stmt = $db->prepare("SELECT content FROM records WHERE type='SOA' AND domain_id=:domain_id");
|
$stmt = $db->prepare("SELECT content FROM records WHERE type='SOA' AND domain_id=:domain_id LIMIT 1");
|
||||||
$stmt->bindValue(':domain_id', $domainId, PDO::PARAM_INT);
|
$stmt->bindValue(':domain_id', $domainId, PDO::PARAM_INT);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$content = $stmt->fetchColumn();;
|
$content = $stmt->fetchColumn();;
|
||||||
|
|
|
@ -207,6 +207,7 @@ CREATE TABLE IF NOT EXISTS permissions (
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX IF NOT EXISTS perm_domain_index ON permissions(domain);
|
CREATE INDEX IF NOT EXISTS perm_domain_index ON permissions(domain);
|
||||||
|
CREATE INDEX IF NOT EXISTS perm_userid_index ON permissions(userid);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS remote (
|
CREATE TABLE IF NOT EXISTS remote (
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
|
|
Loading…
Reference in a new issue