Skip to content

Commit

Permalink
feat: increase column width for project name (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaHehl committed May 7, 2024
1 parent 2ed3b31 commit 8fe7e8d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @license Copyright 2024 Google Inc. All Rights Reserved.
* 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.
*/
'use strict';

const Sequelize = require('sequelize');

/* eslint-disable new-cap */

module.exports = {
/**
* @param {{queryInterface: import('sequelize').QueryInterface, options: LHCI.ServerCommand.StorageOptions}} _
*/
up: async ({queryInterface}) => {
await queryInterface.changeColumn('projects', 'name', {
type: Sequelize.STRING(256),
});
},
/**
* @param {{queryInterface: import('sequelize').QueryInterface, options: LHCI.ServerCommand.StorageOptions}} _
*/
down: async ({queryInterface}) => {
await queryInterface.changeColumn('projects', 'name', {
type: Sequelize.STRING(40),
});
},
};
2 changes: 1 addition & 1 deletion packages/server/src/api/storage/sql/project-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Sequelize = require('sequelize');
/** @type {LHCI.ServerCommand.TableDefinition<LHCI.ServerCommand.Project>} */
const attributes = {
id: {type: Sequelize.UUID(), primaryKey: true},
name: {type: Sequelize.STRING(40)},
name: {type: Sequelize.STRING(256)},
slug: {type: Sequelize.STRING(40)},
externalUrl: {type: Sequelize.STRING(256)},
token: {type: Sequelize.UUID()},
Expand Down

0 comments on commit 8fe7e8d

Please sign in to comment.