Skip to content

Commit

Permalink
backend: Fix migrate down queries
Browse files Browse the repository at this point in the history
this patch fixes the errors in migrate down queries.

Signed-off-by: Santhosh Nagaraj S <[email protected]>
  • Loading branch information
yolossn committed May 13, 2022
1 parent a1e393b commit 9f6a75f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
16 changes: 8 additions & 8 deletions backend/pkg/api/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions backend/pkg/api/db/migrations/0008-arm-channels-groups.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ $$;
-- +migrate StatementEnd

-- +migrate Down

delete from channel where id = '5dfe7b12-c94a-470d-a2b6-2eae78c5c9f5';
delete from channel where id = 'cf20698b-1f19-43d6-b6f6-d15c796cb217';
delete from channel where id = 'def12ce0-3ba4-4649-b290-8843f3b455eb';
delete from channel where id = '30b6ffa6-e6dc-4a01-bea6-9ce7f1a5bb34';

delete from groups where id = '11a585f6-9418-4df0-8863-78b2fd3240f8';
delete from groups where id = 'd112ec01-ba34-4a9e-9d4b-9814a685f266';
delete from groups where id = 'e641708d-fb48-4260-8bdf-ba2074a1147a';
delete from groups where id = 'b4b2fa22-c1ea-498c-a8ac-c1dc0b1d7c17';
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ CREATE UNIQUE INDEX application_unique_product_idx on application (LOWER(product
-- +migrate Down

alter table application drop constraint application_unique_product_id;
alter table application INDEX application_unique_product_idx;
drop index if exists application_unique_product_idx;
alter table application drop column product_id;

0 comments on commit 9f6a75f

Please sign in to comment.