Skip to content

Commit

Permalink
build(database): target the pr branch when applying migrations (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel authored Jun 23, 2024
1 parent 6097544 commit 49a3789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/migration-db-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:

- name: Set database branch name
run: |
echo "${{ github.event.pull_request.base.ref }}"
echo "Name 1: ${{ github.ref }}"
echo "Name 2: ${{ github.head_ref }}"
echo "Name 3: ${{ github.base_ref }}"
echo "Name 4: ${{ github.event.pull_request }}"
echo "PSCALE_BRANCH_NAME=$(echo ${{ github.event.pull_request.base.ref }} | tr -cd '[:alnum:]-'| tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Get the deploy request number in development branch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*
Warnings:
- You are about to drop the column `is_favorite` on the `folders` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX `folders_is_favorite_idx` ON `folders`;
Expand Down

0 comments on commit 49a3789

Please sign in to comment.