Skip to content

Commit

Permalink
Change asset path collation to "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Mar 7, 2024
1 parent 08741d7 commit 8227d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dandiapi/api/migrations/0006_asset_path_collation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
model_name='asset',
name='path',
field=models.CharField(
db_collation='C.utf8',
db_collation='C',
max_length=512,
validators=[dandiapi.api.models.asset.validate_asset_path],
),
Expand Down
2 changes: 1 addition & 1 deletion dandiapi/api/models/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Status(models.TextChoices):
INVALID = 'Invalid'

asset_id = models.UUIDField(unique=True, default=uuid.uuid4)
path = models.CharField(max_length=512, validators=[validate_asset_path], db_collation='C.utf8')
path = models.CharField(max_length=512, validators=[validate_asset_path], db_collation='C')
blob = models.ForeignKey(
AssetBlob, related_name='assets', on_delete=models.CASCADE, null=True, blank=True
)
Expand Down

0 comments on commit 8227d46

Please sign in to comment.