Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWe should add unique constraint on Database name + engine (driver) #11106
Comments
|
We don't have a unique constraint on database name so actually what is happening is it's creating a new database with the same name. But I do think we should add a unique constraint for database |
|
Ah got it. Agreed, I think the unique constraint for database name + engine would be beneficial. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
POST to /api/database will overwrite an existing database instead of erroring
To Reproduce
Create a database with a POST to /api/database.
Run the same call again.
Expected behavior
Expect Metabase to error and say, "Database with name 'foo' already exists"
Actual behavior
Metabase gives another 200 and will overwrite any previous database config with the same name.
Information about your Metabase Installation:
Metabase 0.33.3