Skip to content
Merged
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
4 changes: 2 additions & 2 deletions database/schemas/awips.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ GRANT ALL ON TABLE awips.products TO awips_service;
GRANT SELECT ON TABLE awips.products TO nobody, api_service;

-- Create all yearly table
CREATE OR REPLACE FUNCTION awips.CREATE_YEARLY_PARTITIONS (start INTEGER, end INTEGER) RETURNS VOID AS $$
CREATE OR REPLACE FUNCTION awips.CREATE_YEARLY_PARTITIONS (starts INTEGER, ends INTEGER) RETURNS VOID AS $$
BEGIN
FOR year IN start..end
FOR year IN starts..ends
LOOP
-- Products
PERFORM create_yearly_range_partition('awips.products', year);
Expand Down