ALTER TABLE "groceries"."prices" DROP CONSTRAINT "prices_product_id_products_id_fkey";--> statement-breakpoint DROP TABLE "groceries"."prices";--> statement-breakpoint DROP TABLE "groceries"."products";--> statement-breakpoint -- The hand-entered products/prices tables were never used (0 rows); replaced by store items -- and groups in the next migration. Unregister them from the /lists database browser. DO $$ BEGIN IF to_regclass('meta.tables') IS NOT NULL THEN DELETE FROM meta.tables WHERE schema_name = 'groceries' AND table_name IN ('products','prices'); END IF; END $$;