vona-module-a-orm 5.0.74 → 5.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3773,7 +3773,7 @@ function ExtendSchemaBuilder(app) {
|
|
|
3773
3773
|
['fetchDatabases', 'createDatabase', 'dropDatabase', 'fetchIndexes'].forEach(method => {
|
|
3774
3774
|
knex.SchemaBuilder.extend(method, async function (...args) {
|
|
3775
3775
|
const client = cast(cast(this).client).config.client;
|
|
3776
|
-
const dialect = app.
|
|
3776
|
+
const dialect = app.scope('a-orm').service.database.getDialect(client);
|
|
3777
3777
|
return await dialect[method](this, ...args);
|
|
3778
3778
|
});
|
|
3779
3779
|
});
|
|
@@ -3782,7 +3782,7 @@ function ExtendSchemaBuilder(app) {
|
|
|
3782
3782
|
const __ThisModule__ = 'a-orm';
|
|
3783
3783
|
|
|
3784
3784
|
function ExtendTableBuilder(app) {
|
|
3785
|
-
const scope = app.
|
|
3785
|
+
const scope = app.scope(__ThisModule__);
|
|
3786
3786
|
function _basicFields(options, identityType) {
|
|
3787
3787
|
options = options || {};
|
|
3788
3788
|
if (options.id !== false) {
|