Organize DB Schema Migration Code and DB Init Checks (#842)
Create Schema Manager and propagate contexts into the DB calls downstream. Add checks at controller startup and database init for correct schema version and schema migration dirty bit being set.
This commit is contained in:
1 parent
c141a050e5
commit
ec6151d174
83 files changed
+2425
-1176
No files matched your search
@@ -0,0 +1,20 @@
|
||||
begin;
|
||||
|
||||
drop table session_state;
|
||||
drop table session_state_enm;
|
||||
drop table session;
|
||||
drop table session_termination_reason_enm;
|
||||
drop function insert_session_state;
|
||||
drop function insert_new_session_state;
|
||||
drop function insert_session;
|
||||
drop function update_session_state_on_termination_reason;
|
||||
drop function insert_session_state;
|
||||
|
||||
|
||||
delete
|
||||
from oplog_ticket
|
||||
where name in (
|
||||
'session'
|
||||
);
|
||||
|
||||
commit;
|
||||
Reference in new issue
Block a user