fix: Increase display_color column length to 7 in the generic OIDC pr…#105
fix: Increase display_color column length to 7 in the generic OIDC pr…#105Boy132 merged 1 commit intopelican-dev:mainfrom
Conversation
📝 WalkthroughWalkthroughA database schema migration increases the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@generic-oidc-providers/database/migrations/001_create_generic_oidc_providers_table.php`:
- Line 17: Create a new migration (don't modify the original) that alters the
generic_oidc_providers table to change the display_color column length to 7 so
existing installs are fixed; in the migration's up() use
Schema::table('generic_oidc_providers', ...) and call
$table->string('display_color', 7)->nullable()->change(); and in down() reverse
it (e.g. change back to string('display_color', 6)->nullable()->change()) so the
migration is reversible.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
generic-oidc-providers/database/migrations/001_create_generic_oidc_providers_table.php
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
generic-oidc-providers/database/migrations/001_create_generic_oidc_providers_table.php
Show resolved
Hide resolved
|
Also i've run in the or theoretically if no data is currently stored, u could rollback and then re-migrate (only in dev, never in prod): |
Minor change: QoL Improvement.
Increased the length of the 'display_color' field from 6 to 7 characters to accommodate additional color formats. Previously it shortened my "#8b5cf6" to "#8b5cf" which is an entirly different color.
Summary by CodeRabbit