Test and Run DbSetup, succes
This commit is contained in:
parent
db09261768
commit
2e0b20a53e
8 changed files with 102 additions and 76 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue