Skip to content

Commit

Permalink
Fix up migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed May 3, 2023
1 parent bd87c65 commit 1983dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ CREATE POLICY end_user_access ON public.raw_commodity
WITH CHECK (end_user_id = auth.uid());

-- WARNING: Will need to rerun 2023-01-07_create-views.sql manually due to dependecy on ledger_resource_id
ALTER TABLE "public"."raw_transaction" DROP COLUMN "ledger_resource_id";
ALTER TABLE "public"."raw_account" DROP COLUMN "ledger_resource_id";
ALTER TABLE "public"."raw_commodity" DROP COLUMN "ledger_resource_id";
ALTER TABLE "public"."raw_transaction" DROP COLUMN "ledger_resource_id" CASCADE;
ALTER TABLE "public"."raw_account" DROP COLUMN "ledger_resource_id" CASCADE;
ALTER TABLE "public"."raw_commodity" DROP COLUMN "ledger_resource_id" CASCADE;

-- Update references which were previously missed

Expand Down

0 comments on commit 1983dc8

Please sign in to comment.