Dev SSO: Tables, SAML

This commit is contained in:
2024-12-30 09:44:47 +01:00
parent f7d11c297d
commit 50cc0fc5be
26 changed files with 710 additions and 112 deletions

View File

@@ -116,8 +116,17 @@ class AlterTable extends Query {
}
}
} else if ($action === "ADD") {
$query .= "CONSTRAINT ";
$query .= $this->sql->getConstraintDefinition($constraint);
$constraintName = $constraint->getName();
if ($constraintName) {
$query .= "CONSTRAINT ";
$query .= $constraintName;
$query .= " ";
$query .= $this->sql->getConstraintDefinition($constraint);
} else {
$this->sql->setLastError("Cannot ADD CONSTRAINT without a constraint name.");
return null;
}
} else if ($action === "MODIFY") {
$this->sql->setLastError("MODIFY CONSTRAINT foreign key is not supported.");
return null;