Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: Re-order migrations for next release #5146

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ begin;
references session_state (session_id, end_time)
);

-- Replaced in 91/06_session_state_tstzrange.up.sql
-- Replaced in 92/02_session_state_tstzrange.up.sql
create trigger immutable_columns before update on session_state
for each row execute procedure immutable_columns('session_id', 'state', 'start_time', 'previous_end_time');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ begin;
end;
$$ language plpgsql;

-- Replaced in 91/06_session_state_tstzrange.up.sql
-- Replaced in 92/02_session_state_tstzrange.up.sql
create trigger wh_insert_session_state after insert on session_state
for each row execute function wh_insert_session_state();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ begin
end; $$;

-- Replaces trigger from 0/50_session.up.sql
-- Replaced in 91/06_session_state_tstzrange.up.sql
-- Replaced in 92/02_session_state_tstzrange.up.sql
-- Update insert session state transition trigger
drop trigger insert_session_state on session_state;
drop function insert_session_state();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ drop function cancel_session(in sessionId text);
-- Sessions can progress directly to terminated without going through the canceling state
-- cancel_session will insert a cancel state for the session, if there's isn't
-- a canceled or terminated state already. It's used by cancel_session_with_null_fk.
-- Replaced in 91/07_cancel_session_trigger.up.sql
-- Replaced in 92/03_cancel_session_trigger.up.sql
create function cancel_session(in sessionId text) returns void
as $$
declare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
begin;

-- Replaces the view created in 69/02_session_worker_protocol.up.sql
-- Replaced in 91/06_session_state_tstzrange.up.sql
-- Replaced in 92/02_session_state_tstzrange.up.sql
drop view session_list;
create view session_list as
select s.public_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ begin;
'for the user that corresponds to the provided auth_token_id.';

-- Replaces function from 60/03_wh_sessions.up.sql
-- Replaced in 91/06_session_state_tstzrange.up.sql
-- Replaced in 92/02_session_state_tstzrange.up.sql
create function wh_insert_session() returns trigger
as $$
declare
Expand Down