Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -6,5 +6,6 @@ module.exports = db; | ... | @@ -6,5 +6,6 @@ module.exports = db; |
6 | db.then(async() => { | 6 | db.then(async() => { |
7 | await db.get('board').createIndex({name: 1}, {unique: true}); | 7 | await db.get('board').createIndex({name: 1}, {unique: true}); |
8 | await db.get('thread').createIndex({board: 1, lastUpdated: -1}); | 8 | await db.get('thread').createIndex({board: 1, lastUpdated: -1}); |
9 | + await db.get('subthread').createIndex({parent: 1}); | ||
9 | await db.get('board').insert({name: 'amumal', title: '아무말판'}).catch(() => {}); | 10 | await db.get('board').insert({name: 'amumal', title: '아무말판'}).catch(() => {}); |
10 | }); | 11 | }); | ... | ... |
-
Please register or login to post a comment