Skip to content

Commit 19d2288

Browse files
committed
feat: increase length of ProjectTemplate.info field
1 parent 167ce16 commit 19d2288

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--
2+
-- UPDATE EXISTING TABLES:
3+
-- project_templates:
4+
-- modify column `info`
5+
6+
--
7+
-- project_templates
8+
9+
10+
ALTER TABLE project_templates ALTER COLUMN "info" TYPE character varying(1024);

src/models/projectTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = (sequelize, DataTypes) => {
1616
metadata: { type: DataTypes.JSON, allowNull: false, defaultValue: {} },
1717
icon: { type: DataTypes.STRING(255), allowNull: false },
1818
question: { type: DataTypes.STRING(255), allowNull: false },
19-
info: { type: DataTypes.STRING(255), allowNull: false },
19+
info: { type: DataTypes.STRING(1024), allowNull: false },
2020
aliases: { type: DataTypes.JSON, allowNull: false },
2121
scope: { type: DataTypes.JSON, allowNull: true },
2222
phases: { type: DataTypes.JSON, allowNull: true },

src/routes/projectTemplates/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const schema = {
2222
metadata: Joi.object(),
2323
icon: Joi.string().max(255).required(),
2424
question: Joi.string().max(255).required(),
25-
info: Joi.string().max(255).required(),
25+
info: Joi.string().max(1024).required(),
2626
aliases: Joi.array().required(),
2727
scope: Joi.object().empty(null),
2828
phases: Joi.object().empty(null),

src/routes/projectTemplates/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const schema = {
2525
metadata: Joi.object(),
2626
icon: Joi.string().max(255),
2727
question: Joi.string().max(255),
28-
info: Joi.string().max(255),
28+
info: Joi.string().max(1024),
2929
aliases: Joi.array(),
3030
scope: Joi.object().empty(null),
3131
phases: Joi.object().empty(null),

0 commit comments

Comments
 (0)