robin*
Builds for 1 pipeline failed in 0 seconds

스레드를 인덱스에 추가

...@@ -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 });
......