unit test fixin
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
This commit is contained in:
@@ -893,12 +893,12 @@ CREATE INDEX IF NOT EXISTS idx_receipt_items_master_item_id ON public.receipt_it
|
||||
|
||||
-- 54. Store schema metadata to detect changes during deployment.
|
||||
CREATE TABLE IF NOT EXISTS public.schema_info (
|
||||
id INT PRIMARY KEY DEFAULT 1,
|
||||
environment TEXT PRIMARY KEY,
|
||||
schema_hash TEXT NOT NULL,
|
||||
deployed_at TIMESTAMPTZ DEFAULT now() NOT NULL,
|
||||
CONSTRAINT single_row_check CHECK (id = 1)
|
||||
deployed_at TIMESTAMPTZ DEFAULT now() NOT NULL
|
||||
);
|
||||
COMMENT ON TABLE public.schema_info IS 'Stores metadata about the deployed schema, such as a hash of the schema file, to detect changes.';
|
||||
COMMENT ON COLUMN public.schema_info.environment IS 'The deployment environment (e.g., ''development'', ''test'', ''production'').';
|
||||
COMMENT ON COLUMN public.schema_info.schema_hash IS 'A SHA-256 hash of the master_schema_rollup.sql file at the time of deployment.';
|
||||
|
||||
-- 55. Store user reactions to various entities (e.g., recipes, comments).
|
||||
@@ -2610,4 +2610,3 @@ BEGIN
|
||||
bp.price_rank = 1;
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user