Skip to content

Commit e21f886

Browse files
author
Ido Shamun
authored
refactor: add content seed data (#13)
Add knex seed data file which contains a partial dump of the following tables: * posts * publications * tags * tags_count In addition, it generates random time, up to one month before the time of running the see, for each post. This makes sure that most posts are "new" and will be part of the latest feed. Closes #11
1 parent f4bfc2a commit e21f886

File tree

7 files changed

+40718
-0
lines changed

7 files changed

+40718
-0
lines changed

helm/values/prod.yaml.enc

0 Bytes
Binary file not shown.

knexfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ module.exports = {
66
password: process.env.MYSQL_PASSWORD,
77
database: process.env.MYSQL_DATABASE,
88
},
9+
seeds: {
10+
directory: './seeds/dev',
11+
},
912
},
1013
};

seeds/data/posts.json

+34,002
Large diffs are not rendered by default.

seeds/data/pubs.json

+118
Large diffs are not rendered by default.

seeds/data/tags.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)