diff --git a/config/databases/production.json.sample b/config/databases/production.json.sample index 26767ee..4f0a8a7 100644 --- a/config/databases/production.json.sample +++ b/config/databases/production.json.sample @@ -7,8 +7,7 @@ "domainFolder": "example1.io", "port": "2222", "externalProjectFolder": "", - "externalPhpPath": "", - "localProjectUrl": "example1.development" + "externalPhpPath": "" }, "username-2-placeholder": { "username": "example2", @@ -17,8 +16,7 @@ "domainFolder": "example2.io", "port": "2222", "externalProjectFolder": "", - "externalPhpPath": "", - "localProjectUrl": "example2.development" + "externalPhpPath": "" } } } diff --git a/dist/models/databasesModel.js b/dist/models/databasesModel.js index 57c3b93..0e5be5d 100644 --- a/dist/models/databasesModel.js +++ b/dist/models/databasesModel.js @@ -18,7 +18,6 @@ class DatabasesModel { 'externalProjectFolder': '', 'wordpress': false, 'externalPhpPath': '', - 'localProjectUrl': '' }; // Collect databases | collect single database this.collectDatabaseData = (databaseKey, databaseType) => tslib_1.__awaiter(this, void 0, void 0, function* () { @@ -38,14 +37,11 @@ class DatabasesModel { this.databaseData.domainFolder = database.domainFolder; // @ts-ignore this.databaseData.port = database.port; - this.databaseData.localProjectFolder = database.localProjectFolder; this.databaseData.externalProjectFolder = database.externalProjectFolder; // @ts-ignore this.databaseData.wordpress = database.wordpress; // @ts-ignore this.databaseData.externalPhpPath = database.externalPhpPath; - // @ts-ignore - this.databaseData.localProjectUrl = database.localProjectUrl; } else { // Collect all database diff --git a/dist/models/databasesModel.js.map b/dist/models/databasesModel.js.map index ae3d73c..8d9717d 100644 --- a/dist/models/databasesModel.js.map +++ b/dist/models/databasesModel.js.map @@ -1 +1 @@ -{"version":3,"file":"databasesModel.js","sourceRoot":"","sources":["../../src/models/databasesModel.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,+FAAmE;AACnE,aAAa;AACb,qGAAyE;AAEzE,MAAM,cAAc;IAApB;QACQ,kBAAa,GAAyB,EAAE,CAAC;QACzC,iBAAY,GAAG;YACrB,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,E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AI,CAAC,YAAY,CAAC,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAA;oBAC5D,aAAa;oBACb,IAAI,CAAC,YAAY,CAAC,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAA;iBAC5D;qBAAM;oBACN,uBAAuB;oBACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,YAAY,MAAM,QAAQ,CAAC,QAAQ,KAAK,GAAG,GAAG,CAAC,CAAC;iBACpF;aACD;QACF,CAAC,CAAA,CAAA;IACF,CAAC;CAAA;AAED,kBAAe,cAAc,CAAC"} \ No newline at end of file +{"version":3,"file":"databasesModel.js","sourceRoot":"","sources":["../../src/models/databasesModel.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,+FAAmE;AACnE,aAAa;AACb,qGAAyE;AAEzE,MAAM,cAAc;IAApB;QACQ,kBAAa,GAAyB,EAAE,CAAC;QACzC,iBAAY,GAAG;YACrB,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;YACZ,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,EAAE;YACV,oBAAoB,EAAE,EAAE;YACxB,uBAAuB,EAAE,EAAE;YAC3B,WAAW,EAAE,KAAK;YAClB,iBAAiB,EAAE,EAAE;SACrB,CAAC;QAEF,8CAA8C;QAC9C,wBAAmB,GAAG,CAAO,WAA0B,EAAE,YAA2B,EAAG,EAAE;YACxF,aAAa;YACb,IAAI,SAAS,GAAG,sBAAgB,CAAC,SAAS,CAAC;YAE3C,IAAI,YAAY,IAAI,YAAY,EAAE;gBACjC,aAAa;gBACb,SAAS,GAAG,yBAAmB,CAAC,SAAS,CAAC;aAC1C;YAED,KAAK,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;gBACtD,IAAI,WAAW,IAAI,GAAG,EAAE;oBACvB,+BAA+B;oBAC/B,IAAI,CAAC,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;oBAC/C,aAAa;oBACb,IAAI,CAAC,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;oBAC/C,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;oBAC3C,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC;oBACvD,aAAa;oBACb,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;oBACvC,IAAI,CAAC,YAAY,CAAC,qBAAqB,GAAG,QAAQ,CAAC,qBAAqB,CAAC;oBACzE,aAAa;oBACb,IAAI,CAAC,YAAY,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;oBACjD,aAAa;oBACb,IAAI,CAAC,YAAY,CAAC,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAA;iBAC5D;qBAAM;oBACN,uBAAuB;oBACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,YAAY,MAAM,QAAQ,CAAC,QAAQ,KAAK,GAAG,GAAG,CAAC,CAAC;iBACpF;aACD;QACF,CAAC,CAAA,CAAA;IACF,CAAC;CAAA;AAED,kBAAe,cAAc,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index fd26714..9392575 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 11b76b3..d505368 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.3", + "version": "0.1.4", "description": "Database synchronizer for Shopware 6", "author": { "name": "Jelle Siderius" diff --git a/src/models/databasesModel.ts b/src/models/databasesModel.ts index 4195595..ddb915e 100644 --- a/src/models/databasesModel.ts +++ b/src/models/databasesModel.ts @@ -15,7 +15,6 @@ class DatabasesModel { 'externalProjectFolder': '', 'wordpress': false, 'externalPhpPath': '', - 'localProjectUrl': '' }; // Collect databases | collect single database @@ -38,14 +37,11 @@ class DatabasesModel { this.databaseData.domainFolder = database.domainFolder; // @ts-ignore this.databaseData.port = database.port; - this.databaseData.localProjectFolder = database.localProjectFolder; this.databaseData.externalProjectFolder = database.externalProjectFolder; // @ts-ignore this.databaseData.wordpress = database.wordpress; // @ts-ignore this.databaseData.externalPhpPath = database.externalPhpPath - // @ts-ignore - this.databaseData.localProjectUrl = database.localProjectUrl } else { // Collect all database this.databasesList.push(`${database.domainFolder} / ${database.username} (${key})`);