Skip to content

Commit

Permalink
Add new column for products description
Browse files Browse the repository at this point in the history
  • Loading branch information
laetitia committed Jul 27, 2018
1 parent 6bbc398 commit 56837be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.51.3 (2018-06-29)
## 0.51.3 (2018-07-27)

### Added

- `ProductTranslation` new field: `marketing_text` (Product marketing text)
- `ProductTranslation` new field: `additional_description` (Additional description for products)

## 0.51.2 (2018-06-18)

Expand Down
2 changes: 1 addition & 1 deletion resources/sql/create_schema_utf8mb4.sql
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
characteristic VARCHAR(150) DEFAULT NULL,
specs VARCHAR(5000) DEFAULT NULL COMMENT 'Product specifications',
usp VARCHAR(200) DEFAULT NULL COMMENT 'Unique Selling Proposition',
marketing_text VARCHAR(2000) DEFAULT NULL COMMENT 'Product marketing text',
additional_description VARCHAR(2000) DEFAULT NULL COMMENT 'Additional description',
keywords VARCHAR(200) DEFAULT NULL,
revision INT UNSIGNED DEFAULT 1 COMMENT 'Translation revision number',
created_at DATETIME DEFAULT NULL COMMENT 'Record creation timestamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
characteristic VARCHAR(150) DEFAULT NULL,
specs VARCHAR(5000) DEFAULT NULL COMMENT 'Product specifications',
usp VARCHAR(200) DEFAULT NULL COMMENT 'Unique Selling Proposition',
marketing_text VARCHAR(2000) DEFAULT NULL COMMENT 'Product marketing text',
additional_description VARCHAR(2000) DEFAULT NULL COMMENT 'Additional description',
keywords VARCHAR(200) DEFAULT NULL,
revision INT UNSIGNED DEFAULT 1 COMMENT 'Translation revision number',
created_at DATETIME DEFAULT NULL COMMENT 'Record creation timestamp',
Expand Down
12 changes: 6 additions & 6 deletions src/OpenstoreSchema/Core/Entity/ProductTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class ProductTranslation
private $usp;

/**
* @ORM\Column(type="string", length=2000, nullable=true, options={"comment" = "Product marketing text"})
* @ORM\Column(type="string", length=2000, nullable=true, options={"comment" = "Additional description"})
*/
private $marketing_text;
private $additional_description;

/**
* @ORM\Column(type="string", length=200, nullable=true)
Expand Down Expand Up @@ -231,14 +231,14 @@ public function getUsp(): ?string
return $this->usp;
}

public function setMarketingText(?string $marketing_text): void
public function setAdditionalDescription(?string $additional_description): void
{
$this->marketing_text = $marketing_text;
$this->additional_description = $additional_description;
}

public function getMarketingText(): ?string
public function getAdditionalDescription(): ?string
{
return $this->marketing_text;
return $this->additional_description;
}

public function setProductId($product_id)
Expand Down

0 comments on commit 56837be

Please sign in to comment.