Skip to content
Snippets Groups Projects
Commit 62ef72c5 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add min_year and max_year to infrastrucutre

parent e175e45a
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -152,17 +152,6 @@ rqf.addField({
foreign: 'regiao_id',
foreignTable: 'escola'
}
}).addValue({
name: 'year',
table: 'escola',
tableField: 'ano_censo',
resultField: 'year',
where: {
relation: '=',
type: 'integer',
field: 'ano_censo',
table: 'escola'
}
}).addValue({
name: 'location',
table: 'escola',
......@@ -203,7 +192,27 @@ rqf.addField({
type: 'integer',
field: 'dependencia_adm_priv'
}
})
}).addValue({
name: 'min_year',
table: 'escola',
tableField: 'ano_censo',
resultField: 'year',
where: {
relation: '>=',
type: 'integer',
field: 'ano_censo'
}
}).addValue({
name: 'max_year',
table: 'escola',
tableField: 'ano_censo',
resultField: 'year',
where: {
relation: '<=',
type: 'integer',
field: 'ano_censo'
}
});
function matchQueries(queryTotal, queryPartial) {
let match = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment