summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_67.sql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--schema/mysql-migrations/upgrade_67.sql23
1 files changed, 23 insertions, 0 deletions
diff --git a/schema/mysql-migrations/upgrade_67.sql b/schema/mysql-migrations/upgrade_67.sql
new file mode 100644
index 0000000..4bbb1b9
--- /dev/null
+++ b/schema/mysql-migrations/upgrade_67.sql
@@ -0,0 +1,23 @@
+CREATE TABLE sync_run (
+ id BIGINT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
+ 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,
+ objects_deleted INT(10) UNSIGNED DEFAULT 0,
+ objects_created INT(10) UNSIGNED DEFAULT 0,
+ objects_modified INT(10) UNSIGNED DEFAULT 0,
+ first_related_activity VARBINARY(20) DEFAULT NULL,
+ last_related_activity VARBINARY(20) DEFAULT NULL,
+ PRIMARY KEY (id),
+ CONSTRAINT sync_run_rule
+ FOREIGN KEY sync_rule (rule_id)
+ REFERENCES sync_rule (id)
+ ON DELETE SET NULL
+ ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO director_schema_migration
+ SET migration_time = NOW(),
+ schema_version = 67;
+