1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- [1mdiff --git a/modules/xmlSychronization/index.js b/modules/xmlSychronization/index.js[m
- [1mindex fd14035..115c7c8 100644[m
- [1m--- a/modules/xmlSychronization/index.js[m
- [1m+++ b/modules/xmlSychronization/index.js[m
- [36m@@ -11,7 +11,7 @@[m [mconst knex = require('../../database/db');[m
- [m
- class XmlSyncModule extends Module {[m
- constructor(){[m
- [31m- super('/', [2,0,3,4,0], 'XmlSync');[m
- [32m+[m [32msuper();[m
- this.repository = RepositorySystem.create('Products');[m
- this.CatRepo = RepositorySystem.create('Category');[m
- this.CompRepo = RepositorySystem.create('Company');[m
- [1mdiff --git a/package.json b/package.json[m
- [1mindex 3d47d1e..402ca9c 100644[m
- [1m--- a/package.json[m
- [1m+++ b/package.json[m
- [36m@@ -1,6 +1,6 @@[m
- {[m
- "name": "klapi",[m
- [31m- "version": "0.0.1",[m
- [32m+[m[32m "version": "0.0.2",[m
- "private": true,[m
- "main": "lib/export.js",[m
- "scripts": {[m
- [1mdiff --git a/systems/RepositorySystem.js b/systems/RepositorySystem.js[m
- [1mindex df2ff66..e4a9904 100644[m
- [1m--- a/systems/RepositorySystem.js[m
- [1m+++ b/systems/RepositorySystem.js[m
- [36m@@ -114,6 +114,9 @@[m [mclass Repository {[m
- if(fields[i].notNull) {[m
- column = column.notNullable();[m
- }[m
- [32m+[m [32m if(fields[i].unique === true) {[m
- [32m+[m [41m [m [32mcolumn = column.unique(fields[i].key);[m
- [32m+[m [32m }[m
- if(fields[i].fk && false) {[m
- column = column[m
- .unsigned().index().references(fields[i].fk.key).inTable(fields[i].fk.table);[m
- [1mdiff --git a/systems/RoutingSystem.js b/systems/RoutingSystem.js[m
- [1mindex c90739d..f3bfed9 100644[m
- [1m--- a/systems/RoutingSystem.js[m
- [1m+++ b/systems/RoutingSystem.js[m
- [36m@@ -42,7 +42,7 @@[m [mclass RoutingSystem {[m
- this.router.use(prefix, middlewares, router);[m
- return router;[m
- }[m
- [31m-[m
- [32m+[m[41m [m
- }[m
- [m
- module.exports = new RoutingSystem();[m
- \ No newline at end of file[m
|