Skip to content

Commit d25b7a2

Browse files
committed
Added imageURI to blog-post model
We have always been parsing image URIs out of blog posts, but up until now I had forgotten to add them to the actual database.
1 parent f236a68 commit d25b7a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/database/models/blog-post.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const blogPostDatabaseDefinition = database.define('blog_post', {
2020
field: 'link',
2121
allowNull: false
2222
},
23+
imageURI: {
24+
type: Sequelize.STRING,
25+
field: 'image_uri',
26+
allowNull: true
27+
},
2328
description: {
2429
type: Sequelize.TEXT,
2530
field: 'description',

0 commit comments

Comments
 (0)