Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/postgres-init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ UPDATE users SET manager_id = (SELECT id FROM users WHERE username = 'robert.tab
-- Create roles table
CREATE TABLE roles (
id SERIAL PRIMARY KEY,
role_name VARCHAR(100) NOT NULL
role_name VARCHAR(100) NOT NULL UNIQUE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Suggestion: This matches what examples/postgres-test.yml already assumes (role resource id: ".role_name"), and the seeded values admin/user/reader are already distinct, so the constraint is safe. For parity, test/mysql-init.sql:66 has the same roles.role_name column without UNIQUE while examples/mysql-test.yml:310 also derives the role resource ID from .role_name — worth adding the same constraint there (test/sqlserver-init.sql:23 already has it).

);

-- Insert sample roles
Expand Down
Loading