schema/mysql: sync_run.duration_ms might be null
This allows us to store sync_run stats without a duration in the sync transaction while updating duration afterwards. This way the commit duration makes part of our measurement.
This commit is contained in:
parent
e2cd8958c3
commit
ab5bc8035d
|
@ -1060,7 +1060,7 @@ CREATE TABLE sync_run (
|
|||
rule_id INT(10) UNSIGNED DEFAULT NULL,
|
||||
rule_name VARCHAR(255) NOT NULL,
|
||||
start_time DATETIME NOT NULL,
|
||||
duration_ms INT(10) UNSIGNED NOT NULL,
|
||||
duration_ms INT(10) UNSIGNED DEFAULT NULL,
|
||||
objects_deleted INT(10) UNSIGNED DEFAULT 0,
|
||||
objects_created INT(10) UNSIGNED DEFAULT 0,
|
||||
objects_modified INT(10) UNSIGNED DEFAULT 0,
|
||||
|
@ -1076,5 +1076,5 @@ CREATE TABLE sync_run (
|
|||
|
||||
INSERT INTO director_schema_migration
|
||||
SET migration_time = NOW(),
|
||||
schema_version = 67;
|
||||
schema_version = 68
|
||||
|
||||
|
|
Loading…
Reference in New Issue