@keltoi/hydra 2.1.0 → 2.2.1
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/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -112,6 +112,7 @@ class Linking{
|
|
|
112
112
|
#AbscissaEntity=Entity
|
|
113
113
|
#OrdinateEntity=Entity
|
|
114
114
|
|
|
115
|
+
static get name(){ return null }
|
|
115
116
|
|
|
116
117
|
get Abscissa(){
|
|
117
118
|
return this.#AbscissaEntity
|
|
@@ -149,7 +150,7 @@ class Linking{
|
|
|
149
150
|
ordinate=Entity,
|
|
150
151
|
schema=(t)=>{}
|
|
151
152
|
){
|
|
152
|
-
const tableName = `${abscissa.name}${ordinate.name}`;
|
|
153
|
+
const tableName = this.name ?? `${abscissa.name}${ordinate.name}`;
|
|
153
154
|
|
|
154
155
|
return runWhenFalse(
|
|
155
156
|
db.schema.hasTable(tableName),
|
|
@@ -159,6 +160,7 @@ class Linking{
|
|
|
159
160
|
)
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
static migrations(){ return [] }
|
|
162
164
|
|
|
163
165
|
get abscissaKey(){
|
|
164
166
|
return { idAbscissa: this.#abscissa.key }
|