@vibeorm/migrate 1.1.6 → 1.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeorm/migrate",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Migration, introspection, and schema diff toolkit for VibeORM",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -37,6 +37,6 @@
37
37
  "bun": ">=1.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "@vibeorm/parser": "1.1.5"
40
+ "@vibeorm/parser": "1.1.7"
41
41
  }
42
42
  }
@@ -547,7 +547,7 @@ export async function introspect(params: { executor: SqlExecutor }): Promise<Sch
547
547
  kind: "relation",
548
548
  name: isOneToOne
549
549
  ? model.name.charAt(0).toLowerCase() + model.name.slice(1)
550
- : model.name.charAt(0).toLowerCase() + model.name.slice(1) + "s",
550
+ : model.name.charAt(0).toLowerCase() + model.name.slice(1),
551
551
  relatedModel: model.name,
552
552
  isList: !isOneToOne,
553
553
  isRequired: false,
@@ -578,7 +578,7 @@ export async function introspect(params: { executor: SqlExecutor }): Promise<Sch
578
578
  if (!hasRelA) {
579
579
  modelADef.fields.push({
580
580
  kind: "relation",
581
- name: modelB.charAt(0).toLowerCase() + modelB.slice(1) + "s",
581
+ name: modelB.charAt(0).toLowerCase() + modelB.slice(1),
582
582
  relatedModel: modelB,
583
583
  isList: true,
584
584
  isRequired: false,
@@ -600,7 +600,7 @@ export async function introspect(params: { executor: SqlExecutor }): Promise<Sch
600
600
  if (!hasRelB) {
601
601
  modelBDef.fields.push({
602
602
  kind: "relation",
603
- name: modelA.charAt(0).toLowerCase() + modelA.slice(1) + "s",
603
+ name: modelA.charAt(0).toLowerCase() + modelA.slice(1),
604
604
  relatedModel: modelA,
605
605
  isList: true,
606
606
  isRequired: false,