mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-03-22 03:08:23 +00:00
revert(findings): change uid from varchar to text (#7132)
This commit is contained in:
@@ -17,7 +17,6 @@ All notable changes to the **Prowler API** are documented in this file.
|
||||
|
||||
### Changed
|
||||
- Optimized `GET /findings` endpoint to improve response time and size [(#7019)](https://github.com/prowler-cloud/prowler/pull/7019).
|
||||
- Changed `findings.uid` field type from `varchar(300)` to `text` [(#7048)](https://github.com/prowler-cloud/prowler/pull/7048).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
# Generated by Django 5.1.5 on 2025-02-26 13:33
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0012_scan_report_output"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="finding",
|
||||
name="uid",
|
||||
field=models.TextField(blank=False, null=False),
|
||||
),
|
||||
]
|
||||
@@ -636,7 +636,7 @@ class Finding(PostgresPartitionedModel, RowLevelSecurityProtectedModel):
|
||||
updated_at = models.DateTimeField(auto_now=True, editable=False)
|
||||
first_seen_at = models.DateTimeField(editable=False, null=True)
|
||||
|
||||
uid = models.TextField(blank=False, null=False)
|
||||
uid = models.CharField(max_length=300)
|
||||
delta = FindingDeltaEnumField(
|
||||
choices=DeltaChoices.choices,
|
||||
blank=True,
|
||||
|
||||
@@ -5834,7 +5834,7 @@ components:
|
||||
properties:
|
||||
uid:
|
||||
type: string
|
||||
nullable: false
|
||||
maxLength: 300
|
||||
delta:
|
||||
enum:
|
||||
- new
|
||||
@@ -5893,6 +5893,7 @@ components:
|
||||
readOnly: true
|
||||
nullable: true
|
||||
required:
|
||||
- uid
|
||||
- status
|
||||
- severity
|
||||
- check_id
|
||||
|
||||
Reference in New Issue
Block a user