mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-27 23:00:18 +00:00
remove some unused and long indices (#35)
This commit is contained in:
parent
8bd420f044
commit
52ae82a5cc
2 changed files with 7 additions and 45 deletions
45
database.js
45
database.js
|
@ -111,12 +111,7 @@ Secrets.init({
|
|||
unique: false,
|
||||
fields: ['secret_type'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['secret_value'],
|
||||
method: 'BTREE'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
@ -222,16 +217,6 @@ PayloadFireResults.init({
|
|||
sequelize,
|
||||
modelName: 'payload_fire_results',
|
||||
indexes: [
|
||||
{
|
||||
unique: false,
|
||||
fields: ['url'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['CORS'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['user_id'],
|
||||
|
@ -242,26 +227,6 @@ PayloadFireResults.init({
|
|||
fields: ['ip_address'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['referer'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['user_agent'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['cookies'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['title'],
|
||||
method: 'BTREE',
|
||||
},
|
||||
{
|
||||
unique: false,
|
||||
fields: ['origin'],
|
||||
|
@ -310,13 +275,7 @@ CollectedPages.init({
|
|||
}, {
|
||||
sequelize,
|
||||
modelName: 'collected_pages',
|
||||
indexes: [
|
||||
{
|
||||
unique: false,
|
||||
fields: ['uri'],
|
||||
method: 'BTREE',
|
||||
}
|
||||
]
|
||||
indexes: []
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"main": "server.js",
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"start": "node server.js"
|
||||
"start": "node server.js",
|
||||
"db:makemigrations": "./node_modules/sequelize-auto-migrations/bin/makemigration.js"
|
||||
},
|
||||
"author": "mandatory (Matthew Bryant)",
|
||||
"license": "MIT",
|
||||
|
@ -23,7 +24,6 @@
|
|||
"express-jsonschema": "^1.1.6",
|
||||
"google-auth-library": "^8.7.0",
|
||||
"googleapis": "^110.0.0",
|
||||
"jest": "^29.4.1",
|
||||
"keygrip": "^1.1.0",
|
||||
"memorystore": "^1.6.6",
|
||||
"moment": "^2.29.1",
|
||||
|
@ -36,5 +36,8 @@
|
|||
"serve-favicon": "^2.5.0",
|
||||
"uuid": "^8.3.2",
|
||||
"vue-moment": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.4.1",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue