Don't validate prefixes and postfixes for db item ownership

This commit is contained in:
2024-08-17 22:30:30 +02:00
parent 54a38255e6
commit f957bbd9da
3 changed files with 11 additions and 38 deletions

View File

@@ -95,8 +95,7 @@ impl OwnerValidationError {
.join("\n"),
)
.to_owned(),
_ => format!(
OwnerValidationError::StringEmpty => format!(
"'{}' is not a valid {} name.",
name,
db_or_user.lowercased()
@@ -113,12 +112,6 @@ pub enum OwnerValidationError {
// The name is empty, which is invalid
StringEmpty,
// The name is in the format "_<postfix>", which is invalid
MissingPrefix,
// The name is in the format "<prefix>_", which is invalid
MissingPostfix,
}
pub type CreateDatabasesOutput = BTreeMap<String, Result<(), CreateDatabaseError>>;