restore common check in init.js (#535)
This commit is contained in:
@@ -4,7 +4,10 @@
|
|||||||
* currencies, if not obtained through @capire/common.
|
* currencies, if not obtained through @capire/common.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = async ()=>{
|
module.exports = async (tx)=>{
|
||||||
|
const has_common = tx.model.definitions['sap.common.Currencies']?.elements.numcode
|
||||||
|
if (has_common) return
|
||||||
|
|
||||||
await UPSERT.into ('sap.common.Currencies') .columns (
|
await UPSERT.into ('sap.common.Currencies') .columns (
|
||||||
[ 'code', 'symbol', 'name' ]
|
[ 'code', 'symbol', 'name' ]
|
||||||
) .rows (
|
) .rows (
|
||||||
|
|||||||
Reference in New Issue
Block a user