Skip to content

Commit

Permalink
Move DEFAULT_DOMAIN constant to domains module
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Nov 28, 2024
1 parent bb72c96 commit 8499087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
->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')
Expand Down
1 change: 0 additions & 1 deletion module/Core/migrations/Version20240220214031.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
];

Expand Down

0 comments on commit 8499087

Please sign in to comment.