<commit_before>import 'schema.dart';

class MigrationBuilder {
  static String sourceForSchemaUpgrade(
      Schema existingSchema, Schema newSchema, int version, {List<String> changeList}) {
    var diff = existingSchema.differenceFrom(newSchema);
    var source = diff.generateUpgradeSource(changeList: changeList);

    return """
import 'package:aqueduct/aqueduct.dart';   
import 'dart:async';

class Migration$version extends Migration { 
  Future upgrade() async {
   $source
  }
  
  Future downgrade() async {}
  Future seed() async {}
}
    """;
  }
}<commit_msg>Adds override to generate migration file methods (#327)<commit_after>import 'schema.dart';

class MigrationBuilder {
  static String sourceForSchemaUpgrade(
      Schema existingSchema, Schema newSchema, int version, {List<String> changeList}) {
    var diff = existingSchema.differenceFrom(newSchema);
    var source = diff.generateUpgradeSource(changeList: changeList);

    return """
import 'package:aqueduct/aqueduct.dart';   
import 'dart:async';

class Migration$version extends Migration { 
  @override
  Future upgrade() async {
   $source
  }
  
  @override
  Future downgrade() async {}
  
  @override
  Future seed() async {}
}
    """;
  }
}
{'fraction_non_alphanumeric': 0.10920945395273024, 'fraction_numerical': 0.0024449877750611247, 'mean_word_length': 4.293103448275862, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4810562', 'n_tokens_mistral': 370, 'n_tokens_neox': 352, 'n_words': 92}