<commit_before>'use strict';

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('trusted_application',
        {
          id: {
            type: Sequelize.INTEGER,
            primaryKey: true,
            autoIncrement: true
          },
          oauth_client_id: {
              type: Sequelize.UUID,
              onDelete: 'CASCADE',
              references: {
                  model: 'oauth_client',
                  key: 'id'
              }
          },
          trusted_oauth_client_id: {
              type: Sequelize.UUID,
              onDelete: 'CASCADE',
              references: {
                  model: 'oauth_client',
                  key: 'id'
              }
          }
      },
      {
          sync: {force: true}
      }
    );
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('trusted_application');<commit_msg>adapt migration for postgres<commit_after>'use strict';

module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('trusted_application',
        {
          id: {
            type: Sequelize.INTEGER,
            primaryKey: true,
            autoIncrement: true
          },
          oauth_client_id: {
              type: Sequelize.STRING(36), // Sequelize.UUID,
              onDelete: 'CASCADE',
              references: {
                  model: 'oauth_client',
                  key: 'id'
              }
          },
          trusted_oauth_client_id: {
              type: Sequelize.STRING(36), // Sequelize.UUID,
              onDelete: 'CASCADE',
              references: {
                  model: 'oauth_client',
                  key: 'id'
              }
          }
      },
      {
          sync: {force: true}
      }
    );
  },

  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('trusted_application');
{'fraction_non_alphanumeric': 0.10850286906624934, 'fraction_numerical': 0.0020865936358894104, 'mean_word_length': 1.3220338983050848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6437798', 'n_tokens_mistral': 544, 'n_tokens_neox': 536, 'n_words': 90}