<commit_before>'use strict';
exports.up = function(knex) {
  return knex.schema
    .createTableIfNotExists('shares', function(table) {
        table.uuid('_id').notNullable().primary();
        table.string('name').notNullable().unique();
        table.text('url','longtext').notNullable().unique();
        table.integer('order').notNullable().defaultTo(0);
        table.timestamps();
    });
};
exports.down = function(knex) {
  return knex.schema
    .dropTable('shares');
};<commit_msg>Passato Promise ai metodi<commit_after>'use strict';

exports.up = function(knex,Promise) {
  return Promise.all([
    knex.schema.createTableIfNotExists('shares',function(table) {
        table.uuid('_id').notNullable().primary();
        table.string('name').notNullable().unique();
        table.text('url','longtext').notNullable().unique();
        table.integer('order').notNullable().defaultTo(0);
        table.timestamps();
    })
  ]);
};

exports.down = function(knex,Promise) {
  return Promise.all([
    knex.schema.dropTable('shares')
  ]);
};
{'fraction_non_alphanumeric': 0.19065776930409914, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 3.9295774647887325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5790867', 'n_tokens_mistral': 320, 'n_tokens_neox': 319, 'n_words': 38}