Skip to content

Commit a66569b

Browse files
change string to text type of post-content
1 parent b557409 commit a66569b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blog.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import Flask, render_template, request, redirect, session
22
from flask_sqlalchemy import SQLAlchemy
3-
from sqlalchemy import Column, String, Integer, DateTime
3+
from sqlalchemy import Column, String, Integer, DateTime, Text
44
from flask_migrate import Migrate
55
from werkzeug import secure_filename
66
from datetime import datetime
@@ -52,7 +52,7 @@ class Posts(db.Model):
5252
title = Column(String(30), nullable=False)
5353
tagline = Column(String(500), nullable=False)
5454
slug = Column(String(30), nullable=False)
55-
content = Column(String(500), nullable=False)
55+
content = Column(Text, nullable=False)
5656
date = Column(DateTime, nullable=True)
5757
img_file = Column(String(12), nullable=True)
5858

0 commit comments

Comments
 (0)