File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
web3/ansible/roles/system/migrations/tasks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5353 register : migration_results
5454
5555- name : Record applied migrations
56- command : sqlite3 {{ migration_state_file }} "INSERT OR IGNORE INTO migrations (id) VALUES ('{{ item }}');"
56+ command : sqlite3 {{ migration_state_file }} "INSERT INTO migrations (id) VALUES ('{{ item }}');"
5757 loop : " {{ pending_migrations }}"
58+ loop_control :
59+ index_var : migration_index
5860 when :
5961 - migration_results.results is defined
6062 - migration_results.results | length > 0
61- - not (migration_results.results[ansible_loop.index0 ].failed | default(false))
63+ - not (migration_results.results[migration_index ].failed | default(false))
6264
6365- name : Verify migrations were recorded
6466 command : sqlite3 {{ migration_state_file }} "SELECT id FROM migrations;"
You can’t perform that action at this time.
0 commit comments