-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Labels
pendingThis issue is pending reviewThis issue is pending reviewquestionFurther information is requestedFurther information is requested
Description
- Laravel Version: 12.34.0
- PHP Version: 8.4.13
- Blueprint Version: 2.12.0
- Platform: Linux
Issue:
I have a many to many relationship between AppRoles and AppUsers: each user HasMany roles and each role BelongsToMany users. Both the models use ulids: however, adding users after the line belongsToMany: AppUser causes the Blueprint to generate a migration where, instead of the usual foreignUlid, a foreignId is generated. If I remove the name it works flawlessly. I also have foreign key constraints active.
draft.yaml:
models:
AppRole:
ulid
slug: string:20:unique
name: string:50
relationships:
belongsToMany: AppUser:users
AppUser:
ulid
username: string:255:unique
password: password
firstName: string:255
lastName: string:255
studies: string:255 nullable
room: string:20 nullable
telephone: string:20 nullable
description: longtext
softDeletes
timestamps: false
relationships:
hasMany: AppRole:role
belongsToMany: Group:group
Group:
name: string
color: string
relationships:
hasMany: AppUser:userMetadata
Metadata
Assignees
Labels
pendingThis issue is pending reviewThis issue is pending reviewquestionFurther information is requestedFurther information is requested