Skip to content

Commit

Permalink
Merge pull request #1888 from dandi/1885-hotfix
Browse files Browse the repository at this point in the history
Change asset path collation to "C"
  • Loading branch information
jjnesbitt authored Mar 7, 2024
2 parents 08741d7 + 8227d46 commit e55df88
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 e55df88

Please sign in to comment.