This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Idempotentiate create_tables.sql#5138
Merged
rawlinp merged 10 commits intoapache:masterfrom Oct 15, 2020
Merged
Conversation
Contributor
|
This would be a good test case to add to https://github.com/apache/trafficcontrol/blob/master/traffic_ops_db/test/docker/run-db-test.sh if we can. |
Member
Author
|
DB test added in 9250b20ec8 |
9250b20 to
b2cabc6
Compare
Member
Author
|
Rebased to fix a merge conflict in the changelog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR (Pull Request) do?
./admin load_schemais run more than once (for example, installing TO, with a shared database, on more than 1 host simultaneously), an SQL error should not result.Which Traffic Control components are affected by this PR?
create_tables.sqlseed data)What is the best way to verify this PR?
Run the Traffic Ops DB tests
Check that the resultant schema is identical to the one we would have gotten from
create_tables.sqlpreviously.The following criteria are ALL met by this PR
create_tables.sqltwice, no documentation necessary