mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Move DEFAULT_DOMAIN constant to domains module
This commit is contained in:
parent
bb72c96ebb
commit
8499087a3b
@ -28,10 +28,14 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
|
||||
->length(2048)
|
||||
->build();
|
||||
|
||||
fieldWithUtf8Charset($builder->createField('shortCode', Types::STRING), $emConfig, 'bin')
|
||||
$shortCodeField = fieldWithUtf8Charset($builder->createField('shortCode', Types::STRING), $emConfig, 'bin')
|
||||
->columnName('short_code')
|
||||
->length(255)
|
||||
->build();
|
||||
->length(255);
|
||||
if (($emConfig['connection']['driver'] ?? null) === 'pdo_sqlsrv') {
|
||||
// Make sure a case-sensitive charset is set in short code for Microsoft SQL Server
|
||||
$shortCodeField->option('collation', 'Latin1_General_CS_AS');
|
||||
}
|
||||
$shortCodeField->build();
|
||||
|
||||
$builder->createField('dateCreated', ChronosDateTimeType::CHRONOS_DATETIME)
|
||||
->columnName('date_created')
|
||||
|
@ -20,7 +20,6 @@ final class Version20240220214031 extends AbstractMigration
|
||||
private const DOMAINS_COLUMNS = ['base_url_redirect', 'regular_not_found_redirect', 'invalid_short_url_redirect'];
|
||||
private const TEXT_COLUMNS = [
|
||||
'domains' => self::DOMAINS_COLUMNS,
|
||||
'device_long_urls' => ['long_url'],
|
||||
'short_urls' => ['original_url'],
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user