Skip to content

Commit

Permalink
[ADD] auth_session_timeout:Added pre-migration script for inactive_se…
Browse files Browse the repository at this point in the history
…ssion_time_out_ignored_url.
  • Loading branch information
bizzappdev authored and Abranes committed Oct 3, 2024
1 parent 5e04c9c commit cb373c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions auth_session_timeout/migrations/17.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def migrate(env, version):
"""
Updates the 'inactive_session_time_out_ignored_url' parameter
in the 'ir_config_parameter' table during migration.
"""
env.cr.execute(
"""
UPDATE ir_config_parameter
SET value = '/calendar/notify,/websocket'
WHERE key = 'inactive_session_time_out_ignored_url'
"""
)

0 comments on commit cb373c8

Please sign in to comment.