Skip to content

FOLLOW-UP: Validate authz migration exists when using --with-authz (from PR #273) #278

@adnaan

Description

@adnaan

Context

This follow-up task was identified during the review of PR #273.

Source PR: #273
PR Title: feat: add authorization / RBAC system (Roadmap 2.3)
Suggested by: @claude[bot]

Task Description

A user can run lvt gen authlvt gen resource posts --with-authz (skipping lvt gen authz). The generated handler references user.Role on the sqlc model, but the role column doesn't exist because the authz migration was never generated.

The --with-authz validation currently only checks that app/auth/ exists. It should also verify that the role column is present in schema.sql or that the authz migration has been generated.


This issue was automatically created by prmonitor from PR review comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upFollow-up task from PR reviewfrom-reviewIssue originated from PR review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions