From d286d9f63da8d56ede54e80ebbd81309a64d9911 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 6 Mar 2015 15:23:05 -0500 Subject: [PATCH] Add option to disable uneccesary data migration The latest subunit2sql migration includes a data migration to extract the microseconds from timestamps into a separate column. However, the infra DB for this has already stripped out all the microsecond data from the timestamps, making running that part of the migration unnecessary. This commit adds the flag to the template subunit2sql config file so that we don't run that and just use the default value, 0, for the new columns, which should save a significant amount of time when running the migration. Change-Id: Idf32b883babc79cabe3da1d38e3f7ddd5c4127de --- templates/subunit2sql.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/subunit2sql.conf.erb b/templates/subunit2sql.conf.erb index 70c0166..2e63e88 100644 --- a/templates/subunit2sql.conf.erb +++ b/templates/subunit2sql.conf.erb @@ -1,4 +1,5 @@ [DEFAULT] +disable-microsecond-data-migration = True [database] connection = <%= @db_dialect %>://<%= @db_user %>:<%= @db_pass %>@<%= @db_host %>:<%= @db_port %>/<%= @db_name %>