Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit c0452ba

Browse files
author
Luciano Nooijen
committed
Changed Markdown content to HTML content
1 parent eef57b9 commit c0452ba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

database/migrations/20181030235206_initial_setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const createArticleContentTable = table => {
3939
table.integer('article_id').notNullable().unique().references('id').inTable('articles');
4040
table.string('summary').notNullable();
4141
table.string('image_url').notNullable();
42-
table.text('markdown_content').notNullable();
42+
table.text('html_content').notNullable();
4343
};
4444

4545
const createRelatedArticlesTable = table => {

database/seeds/test-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ const insertArticleContent = knex =>
7373
article_id: 1,
7474
summary: 'In short',
7575
image_url: 'http://placekitten.com/500/500',
76-
markdown_content: 'In long',
76+
html_content: 'In long',
7777
},
7878
{
7979
article_id: 2,
8080
summary: 'In short2',
8181
image_url: 'http://placekitten.com/500/500',
82-
markdown_content: 'In long2',
82+
html_content: 'In long2',
8383
},
8484
]);
8585

swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ components:
564564
type: 'string'
565565
image_url:
566566
type: 'string'
567-
markdown_content:
567+
html_content:
568568
type: 'string'
569569
related_articles:
570570
type: 'array'

0 commit comments

Comments
 (0)