Added schema::model::set for railway
This commit is contained in:
parent
1e79dbfc5f
commit
d5758ec8be
|
@ -209,6 +209,16 @@ function prepareContext(models, railway, app, defSchema, done) {
|
||||||
if (cname) settings[cname].table = name;
|
if (cname) settings[cname].table = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set configuration param
|
||||||
|
*
|
||||||
|
* @param name - name of param.
|
||||||
|
* @param value - value.
|
||||||
|
*/
|
||||||
|
ctx.set = function (name, value) {
|
||||||
|
if (cname) settings[cname][name] = value;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the Schema has additional types, add them to the context
|
* If the Schema has additional types, add them to the context
|
||||||
* e.g. MySQL has an additional Point type
|
* e.g. MySQL has an additional Point type
|
||||||
|
|
Loading…
Reference in New Issue