// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.gerrit.server.schema;

import com.google.gerrit.reviewdb.server.ReviewDb;
import com.google.gwtorm.server.OrmException;
import com.google.gwtorm.server.StatementExecutor;
import com.google.inject.Inject;
import com.google.inject.Provider;

public class Schema_109 extends SchemaVersion {

  @Inject
  Schema_109(Provider<Schema_108> prior) {
    super(prior);
  }

  @Override
  protected void migrateData(ReviewDb db, UpdateUI ui) throws OrmException {
    String cmd = "UPDATE changes SET status = 'n' WHERE status = 's';";
    ui.message("Running " + cmd);
    try (StatementExecutor e = newExecutor(db)) {
      e.execute(cmd);
    }
    ui.message("done");
  }
}

@@ -909,17 +909,16 @@
 rsion %7B%0A
-%0A
   @Injec
@@ -1078,114 +1078,8 @@
 n %7B%0A
-    String cmd = %22UPDATE changes SET status = 'n' WHERE status = 's';%22;%0A    ui.message(%22Running %22 + cmd);%0A
     
@@ -1144,43 +1144,69 @@
 ute(
-cmd);%0A    %7D%0A    ui.message(%22done%22);
+%22UPDATE changes SET status = 'n' WHERE status = 's';%22);%0A    %7D
 %0A  %7D

Remove unnecessary messages from Schema_109