Skip to content

Commit

Permalink
Keep some fields 191
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlavtox committed Jul 23, 2024
1 parent 6f3b430 commit e3d9a3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion classes/Alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AliasCore extends ObjectModel
'primary' => 'id_alias',
'fields' => [
'search' => ['type' => self::TYPE_STRING, 'validate' => 'isValidSearch', 'required' => true, 'size' => 255],
'alias' => ['type' => self::TYPE_STRING, 'validate' => 'isValidSearch', 'required' => true, 'size' => 255],
'alias' => ['type' => self::TYPE_STRING, 'validate' => 'isValidSearch', 'required' => true, 'size' => 191],
'active' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'],
],
];
Expand Down
4 changes: 2 additions & 2 deletions classes/FeatureFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ class FeatureFlagCore extends ObjectModel
'size' => 64,
'default' => FeatureFlagSettings::TYPE_DEFAULT,
],
'label_wording' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 512],
'label_wording' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 191],
'label_domain' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 255],
'description_wording' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 512],
'description_wording' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 191],
'description_domain' => ['type' => self::TYPE_STRING, 'required' => true, 'size' => 255],
'state' => ['type' => self::TYPE_BOOL, 'validate' => 'isBool'],
'stability' => [
Expand Down
6 changes: 3 additions & 3 deletions install-dev/data/db_structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CREATE TABLE `PREFIX_address` (
/* Used for search, if a search string is present inside the table, search the alias as well */
CREATE TABLE `PREFIX_alias` (
`id_alias` int(10) unsigned NOT NULL auto_increment,
`alias` varchar(255) NOT NULL,
`alias` varchar(191) NOT NULL,
`search` varchar(255) NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id_alias`),
Expand Down Expand Up @@ -2978,9 +2978,9 @@ CREATE TABLE `PREFIX_feature_flag` (
`name` VARCHAR(191) NOT NULL,
`type` VARCHAR(64) DEFAULT 'env,dotenv,db' NOT NULL,
`state` TINYINT(1) DEFAULT 0 NOT NULL,
`label_wording` VARCHAR(512) DEFAULT '' NOT NULL,
`label_wording` VARCHAR(191) DEFAULT '' NOT NULL,
`label_domain` VARCHAR(255) DEFAULT '' NOT NULL,
`description_wording` VARCHAR(512) DEFAULT '' NOT NULL,
`description_wording` VARCHAR(191) DEFAULT '' NOT NULL,
`description_domain` VARCHAR(255) DEFAULT '' NOT NULL,
`stability` VARCHAR(64) DEFAULT 'beta' NOT NULL,
UNIQUE KEY `UNIQ_91700F175E237E06` (`name`),
Expand Down
4 changes: 2 additions & 2 deletions src/PrestaShopBundle/Entity/FeatureFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class FeatureFlag
private bool $state;

/**
* @ORM\Column(name="label_wording", type="string", length=512, options={"default":""})
* @ORM\Column(name="label_wording", type="string", length=191, options={"default":""})
*/
private string $labelWording;

Expand All @@ -77,7 +77,7 @@ class FeatureFlag
private string $labelDomain;

/**
* @ORM\Column(name="description_wording", type="string", length=512, options={"default":""})
* @ORM\Column(name="description_wording", type="string", length=191, options={"default":""})
*/
private string $descriptionWording;

Expand Down

0 comments on commit e3d9a3a

Please sign in to comment.