Skip to content

[Introspection] Enum declarations are moved to the end of the schema file after db pull #2342

@ymc9

Description

@ymc9

It seems models' original declaration order is preserved, but enums are moved to the end of the file. Also, triple-slash comments above enum is lost.

Before:

///
/// Enum for user's role in a space
///
enum SpaceUserRole {
    USER
    ADMIN
}

model Space {
...
}

After:

model Space { ... }
...

enum SpaceUserRole {
    USER
    ADMIN
}

@svetch for your awareness

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions