Commit 23ae5714 authored by nanahira's avatar nanahira

add index

parent 88a62d39
Pipeline #253 failed with stages
in 28 seconds
......@@ -75,6 +75,8 @@ export class Tx3Fetcher {
" `equip` int(11) UNSIGNED NOT NULL,\n" +
" `totalScore` int(11) UNSIGNED NOT NULL,\n" +
" PRIMARY KEY (`id`)\n" +
" INDEX [nameIndex] (name(7))\n" +
" INDEX [urlIndex] (url(50))\n" +
") ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci");
console.log(`Removing existing records of ${this.curDate}.`);
//await this.db.query("delete from userdata where date = ?", this.curDate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment