Skip to content

Commit

Permalink
set url hash field length to the correct value
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-blom committed Nov 18, 2019
1 parent 6c9e0bf commit a6c7eca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.0.6] - 2019-11-18
### Changed
- Set db field length of url hash to 128 characters

## [0.0.5] - 2019-11-14
### Added
- Add new exception for mutation testing
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Uri
private $shortCode;

/**
* @ORM\Column(type="string", length=32)
* @ORM\Column(type="string", length=128)
*/
private $UrlHash;

Expand Down
2 changes: 1 addition & 1 deletion src/Migrations/Version20190721184250.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function up(Schema $schema): void
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
original_url CLOB NOT NULL,
short_code VARCHAR(8) NOT NULL,
url_hash VARCHAR(32) NOT NULL)'
url_hash VARCHAR(128) NOT NULL)'
);
$this->addSql('CREATE INDEX create_idx ON uri (url_hash)');
$this->addSql('CREATE INDEX read_idx ON uri (short_code)');
Expand Down

0 comments on commit a6c7eca

Please sign in to comment.