mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Added support for an optional title field in short URLs
This commit is contained in:
@@ -84,4 +84,10 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
|
||||
->build();
|
||||
|
||||
$builder->addUniqueConstraint(['short_code', 'domain_id'], 'unique_short_code_plus_domain');
|
||||
|
||||
$builder->createField('title', Types::STRING)
|
||||
->columnName('title')
|
||||
->length(512)
|
||||
->nullable()
|
||||
->build();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user