Test and Run DbSetup, succes

This commit is contained in:
Janus Knudsen 2025-01-22 17:30:10 +01:00
parent db09261768
commit 2e0b20a53e
8 changed files with 102 additions and 76 deletions

View file

@ -17,9 +17,9 @@ namespace Database.Tenants
public async Task CreateTenantInDatabase(string schema, string user, string password)
{
if (!Regex.IsMatch(schema, "^[a-zA-Z0-9_]+$"))
{
throw new ArgumentException("Invalid schema name");
}
await CreateUser(user, password);
await CreateSchema(schema);
await CreateRolesTable(schema);