Skip to content
Closed

Demo #21

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/DemoToMainMigration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ jobs:

- name: Ensure demo branch is up-to-date
run: |
git checkout -- demo
git pull --ff-only origin demo || { echo "Error pulling demo branch"; exit 1; }
if git ls-remote --exit-code --heads origin demo; then
git fetch origin demo # Asegura que la rama demo esté disponible en local
git checkout demo || git checkout -b demo origin/demo # Checkout demo si existe o crea la rama localmente
git pull --ff-only origin demo || { echo "Error pulling demo branch"; exit 1; }
else
echo "Branch 'demo' does not exist in the remote repository."
exit 1
fi

- name: Copy migration files from demo to temporary folder
run: |
Expand Down
2 changes: 1 addition & 1 deletion demo/flyway.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
databaseType = "SqlServer"
id = "dc11b21e-7756-4c3f-83f4-bc7e7a76bbec"
id = "9e6d3d79-9e7f-4de8-8b2c-3a761b270402"
name = "demo"

[flyway]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ALTER TABLE Brand
ALTER TABLE Brand
ADD Description NVARCHAR(500) NULL;
2 changes: 2 additions & 0 deletions demo/migrations/V1.2__Remove_Description_From_Brand.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE Brand
DROP COLUMN Description;
6 changes: 0 additions & 6 deletions test/.gitignore

This file was deleted.

153 changes: 0 additions & 153 deletions test/Filter.scpf

This file was deleted.

120 changes: 0 additions & 120 deletions test/flyway.toml

This file was deleted.