davidc0le opened a new pull request #6717: URL: https://github.com/apache/trafficcontrol/pull/6717
## What does this PR (Pull Request) do? Closes: #6712 Related: #4984 This PR makes changes to the Traffic Vault 'seed' schema file _create_tables.sql_ to allow it to be run more than once. Even if _db/admin --trafficvault load_schema_ is 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? - Traffic Ops (Traffic Vault seed SQL file ) ## What is the best way to verify this PR? A test as implemented previously in 9250b20 has been added to the Traffic Vault DB test script https://github.com/apache/trafficcontrol/blob/master/traffic_ops/app/db/trafficvault/test/run-tvdb-test.sh . Running the test as described in https://github.com/apache/trafficcontrol/blob/master/traffic_ops/app/db/trafficvault/test/README.md ## PR submission checklist - [x] This PR has tests - [x] You should never actually run TV create_tables.sql twice, no documentation necessary - [x] This PR has a CHANGELOG.md entry - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://apache.org/security) for details) <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
