mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2025-04-12 13:00:02 +03:00
Add note how to sync serial action_id
This commit is contained in:
parent
6d8d1198d3
commit
e5e266b8f1
@ -17,6 +17,15 @@ foreign key (action_id) references squads_stats_states_action_info(action_id)
|
||||
);
|
||||
"""
|
||||
|
||||
"""
|
||||
In order to sync action_id with appropriate serial sequence, execute
|
||||
SELECT
|
||||
setval(
|
||||
'squads_stats_states_action_info_action_id_seq',
|
||||
(SELECT MAX(action_id) FROM squads_stats_states_action_info)+1
|
||||
);
|
||||
"""
|
||||
|
||||
create_new_action_id = """
|
||||
insert into squads_stats_states_action_info (leaderboard_type, platform) values (%(LB_type)s, %(platform)s);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user