<commit_before>exports.up = function(knex, Promise) {
  return knex.schema.createTable('people', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.string('name')

    table.specificType('tickets', 'integer[]')
    .unsigned()

    table.integer('station')
    .unsigned()
  })
  .createTable('stations', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.string('location')
    .notNull()

    table.integer('prevStation')
    .unsigned()

    table.integer('nextStation')
    .unsigned()

    table.specificType('passengers', 'integer[]')
    .unsigned()
  })
  .createTable('trains', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.decimal('capacity')
    .unsigned()
    .notNull()

    table.specificType('passengers', 'integer[]')
    .unsigned()

    table.decimal('station')
    .unsigned()
  })
}

exports.down = function(knex, Promise) {
  return  knex.schema.dropTableIfExists('people')
          .dropTableIfExists('stations')
          .dropTableIfExists('trains')
}<commit_msg>Added tickets table and changed name of people to passengers<commit_after>exports.up = function(knex, Promise) {
  return knex.schema.createTable('passengers', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.string('name')

    table.specificType('tickets', 'integer[]')
    .unsigned()

    table.integer('station')
    .unsigned()
  })
  .createTable('stations', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.string('location')
    .notNull()

    table.integer('prevStation')
    .unsigned()

    table.integer('nextStation')
    .unsigned()

    table.specificType('passengers', 'integer[]')
    .unsigned()
  })
  .createTable('trains', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.decimal('capacity')
    .unsigned()
    .notNull()

    table.specificType('passengers', 'integer[]')
    .unsigned()

    table.decimal('station')
    .unsigned()
  })
  .createTable('tickets', table => {
    table.increments('id')
    .unsigned()
    .primary()

    table.integer('purchasedFromStation')
    .unsigned()
    .notNull()

    table.integer('trainFor')
    .unsigned()
    .notNull()

    table.integer('destinationStation')
    .unsigned()
    .notNull
  })
}

exports.down = function(knex, Promise) {
  return  knex.schema.dropTableIfExists('passengers')
          .dropTableIfExists('stations')
          .dropTableIfExists('trains')
          .dropTableIfExists('people')
          .dropTableIfExists('tickets')
}
{'fraction_non_alphanumeric': 0.17140661029976942, 'fraction_numerical': 0.0, 'mean_word_length': 3.0231839258114372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '5304205', 'n_tokens_mistral': 831, 'n_tokens_neox': 799, 'n_words': 123}