Skip to content

Commit

Permalink
fix: sql syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Dec 9, 2020
1 parent 29a7af2 commit 92bd664
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion schema/data/dev/application-2018.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ begin;

-- Set the current reporting year to 2018, application open
select mocks.set_mocked_time_in_transaction(
select application_open_time
(
select application_open_time
from ggircs_portal.reporting_year
where reporting_year = 2018
)
Expand Down
17 changes: 10 additions & 7 deletions schema/data/dev/certification_url.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ begin;

-- Application window is open, year 2019
select mocks.set_mocked_time_in_transaction(
select application_open_time
from ggircs_portal.reporting_year
where reporting_year = 2019
(
select application_open_time
from ggircs_portal.reporting_year
where reporting_year = 2019
)
);

Expand Down Expand Up @@ -38,10 +39,12 @@ insert into ggircs_portal.application_revision_status(application_id, version_nu

-- Moving timestamp one second forward to avoid revisions being submitted at the same time
select mocks.set_mocked_time_in_transaction(
select application_open_time
from ggircs_portal.reporting_year
where reporting_year = 2019
) + interval '1 second'
(
select application_open_time
from ggircs_portal.reporting_year
where reporting_year = 2019
)
+ interval '1 second'
);

insert into ggircs_portal.application_revision_status(application_id, version_number, application_revision_status)
Expand Down

0 comments on commit 92bd664

Please sign in to comment.