db: Re-order migrations for next release (#5146)
Refs:37bf59243aRefs:3609658edd
This commit is contained in:
1 parent
d9055bd316
commit
21230e1c61
8 files changed
+6
-6
No files matched your search
@@ -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');
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user