fix(policy_engine): make priority migration idempotent

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-17 06:12:42 +00:00
parent f5dea4de76
commit 1b1f6ada46
3 changed files with 47 additions and 1 deletions

View file

@ -1 +1 @@
ALTER TABLE "LiteLLM_PolicyAttachmentTable" ADD COLUMN "priority" INTEGER;
ALTER TABLE "LiteLLM_PolicyAttachmentTable" ADD COLUMN IF NOT EXISTS "priority" INTEGER;

View file

@ -33929,6 +33929,18 @@
"title": "Policy Name",
"type": "string"
},
"priority": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
"title": "Priority"
},
"scope": {
"anyOf": [
{
@ -34042,6 +34054,18 @@
"title": "Policy Name",
"type": "string"
},
"priority": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
"title": "Priority"
},
"scope": {
"anyOf": [
{
@ -36062,6 +36086,18 @@
"title": "Policy Name",
"type": "string"
},
"priority": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
"title": "Priority"
},
"scope": {
"anyOf": [
{

View file

@ -34487,6 +34487,11 @@ export interface components {
* @description Name of the policy to attach.
*/
policy_name: string;
/**
* Priority
* @description Explicit execution order, lower runs first. Prioritised attachments run before those without one.
*/
priority?: number | null;
/**
* Scope
* @description Use '*' for global scope (applies to all requests).
@ -34545,6 +34550,11 @@ export interface components {
* @description Name of the attached policy.
*/
policy_name: string;
/**
* Priority
* @description Explicit execution order, lower runs first. Prioritised attachments run before those without one.
*/
priority?: number | null;
/**
* Scope
* @description Scope of the attachment.