Skip to content

Commit

Permalink
NYS-45: replacing hard coded name with a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsteidl committed Dec 6, 2023
1 parent 8ad9595 commit 49ba573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pantheon-refresh-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Truncate Tables that are not needed in dev
run: |
tables=$(terminus drush nysenate-2022.dev sqlq -- "SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'pantheon' AND (TABLE_NAME LIKE 'accum%' OR TABLE_NAME LIKE 'watchdog%' OR TABLE_NAME LIKE 'migrate%')")
tables=$(terminus drush ${{ vars.PANTHEON_SITE }}.dev sqlq -- "SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'pantheon' AND (TABLE_NAME LIKE 'accum%' OR TABLE_NAME LIKE 'watchdog%' OR TABLE_NAME LIKE 'migrate%')")
tables=$(echo "$tables" | tr ' ' '\n')
echo -e "$tables"
echo "${tables[@]}" | parallel --jobs 32 terminus drush ${{ vars.PANTHEON_SITE }}.dev sqlq -- "\"truncate table {}\""

0 comments on commit 49ba573

Please sign in to comment.