Aggiungere "San Marino" e suoi comuni
Corretto Filtro a mano della ricerca Creare filtro ricerca per trovare la sottocategoria o categoria -> Skill e SubSkill
This commit is contained in:
@@ -562,6 +562,8 @@ async function eseguiDbOp(idapp, mydata, locale) {
|
||||
|
||||
let ris = await User.DbOp(idapp, mydata);
|
||||
|
||||
const populate = require('../populate/populate');
|
||||
|
||||
let mystr = '';
|
||||
|
||||
try {
|
||||
@@ -866,15 +868,46 @@ async function eseguiDbOp(idapp, mydata, locale) {
|
||||
|
||||
await User.setVerifiedByAportadorToALL();
|
||||
|
||||
} else if (mydata.dbop === 'RewriteContribType') {
|
||||
|
||||
populate.rewriteTable('contribtypes');
|
||||
|
||||
} else if (mydata.dbop === 'emptyDbSkill') {
|
||||
|
||||
const {Sector} = require('../models/sector');
|
||||
const {Skill} = require('../models/skill');
|
||||
const {SubSkill} = require('../models/subskill');
|
||||
const {City} = require('../models/city');
|
||||
const {Province} = require('../models/province');
|
||||
|
||||
await Sector.remove({});
|
||||
await Skill.remove({});
|
||||
await SubSkill.remove({});
|
||||
await Sector.deleteMany({});
|
||||
await Skill.deleteMany({});
|
||||
await SubSkill.deleteMany({});
|
||||
await City.deleteMany({});
|
||||
await Province.deleteMany({});
|
||||
|
||||
} else if (mydata.dbop === 'PopulateTables') {
|
||||
|
||||
populate.popolaTabelleNuove();
|
||||
|
||||
} else if (mydata.dbop === 'RewriteCitiesTable') {
|
||||
|
||||
populate.rewriteTable('cities');
|
||||
} else if (mydata.dbop === 'RewriteLevelTable') {
|
||||
|
||||
populate.rewriteTable('levels');
|
||||
|
||||
} else if (mydata.dbop === 'RewriteLevelsTable') {
|
||||
|
||||
populate.rewriteTable('provinces');
|
||||
|
||||
} else if (mydata.dbop === 'emptyCityProvinces') {
|
||||
|
||||
const {City} = require('../models/city');
|
||||
const {Province} = require('../models/province');
|
||||
|
||||
await City.remove({});
|
||||
await Province.remove({});
|
||||
|
||||
/*} else if (mydata.dbop === 'visuNave') {
|
||||
mystr = await Nave.getNavePos(idapp, parseInt(mydata.riga), parseInt(mydata.col));
|
||||
|
||||
Reference in New Issue
Block a user