mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: naming strategy (#19848)
* feat: naming strategy * feat: detect renames
This commit is contained in:
parent
1d19d308e2
commit
9e48ae3052
35 changed files with 517 additions and 127 deletions
|
|
@ -35,7 +35,11 @@ export class StackTable {
|
|||
updateId!: Generated<string>;
|
||||
|
||||
//TODO: Add constraint to ensure primary asset exists in the assets array
|
||||
@ForeignKeyColumn(() => AssetTable, { nullable: false, unique: true })
|
||||
@ForeignKeyColumn(() => AssetTable, {
|
||||
nullable: false,
|
||||
unique: true,
|
||||
uniqueConstraintName: 'REL_91704e101438fd0653f582426d',
|
||||
})
|
||||
primaryAssetId!: string;
|
||||
|
||||
@ForeignKeyColumn(() => UserTable, { onDelete: 'CASCADE', onUpdate: 'CASCADE' })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue