Преглед изворни кода

Change column type to text rather than string

sbkwgh пре 8 година
родитељ
комит
9628b99f7f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      models/post.js

+ 1 - 1
models/post.js

@@ -11,7 +11,7 @@ marked.setOptions({
 module.exports = (sequelize, DataTypes) => {
 	let Post = sequelize.define('Post', {
 		content: {
-			type: DataTypes.STRING,
+			type: DataTypes.TEXT,
 			set (val) {
 				this.setDataValue('content', marked(val))
 			}