Skip to content

Commit

Permalink
Collapse DB migrations that have already been released (pre-ATCv6) (#…
Browse files Browse the repository at this point in the history
…6065)

* Collapse <6 migrations

* Fix TODB tests when there are deletions

* Fix triggers

* IF NOT EXISTS

* IF NOT EXISTS

* Check correct table

* Check correct table

* Fix whitespace
  • Loading branch information
shamrickus committed Jul 29, 2021
1 parent c5542ee commit 3cc78ea
Show file tree
Hide file tree
Showing 31 changed files with 588 additions and 1,662 deletions.
4 changes: 2 additions & 2 deletions .github/actions/todb-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ for file in "$(ls)"; do
done

# Files added must have date and name later than all existing file
LATEST_FILE="$(git log -1 --name-status --format="%ct" . | tail -n 1 | awk '{print $2}' | cut -d / -f5)"
LATEST_FILE_TIME="$(git log -1 --name-status --format="%ct" . | head -n 1 )"
LATEST_FILE="$(git log -1 --name-status --diff-filter=d --format="%ct" . | tail -n 1 | awk '{print $2}' | cut -d / -f5)"
LATEST_FILE_TIME="$(git log -1 --name-status --diff-filter=d --format="%ct" . | head -n 1 )"

# Get modified times in an array
mtime_array=()
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Converted TP Cache Checks table to ag-grid
- [#5981](https://github.com/apache/trafficcontrol/issues/5891) - `/deliveryservices/{{ID}}/safe` returns incorrect response for the requested API version
- [#5984](https://github.com/apache/trafficcontrol/issues/5894) - `/servers/{{ID}}/deliveryservices` returns incorrect response for the requested API version
- [#6027](https://github.com/apache/trafficcontrol/issues/6027) - Collapsed DB migrations

### Changed
- Updated the Traffic Ops Python client to 3.0
Expand Down
Loading

0 comments on commit 3cc78ea

Please sign in to comment.