Skip to content

Commit

Permalink
Half-fix the tea DB thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee committed Aug 26, 2021
1 parent 429f24c commit a434e56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Product/Tea.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Tea extends AbstractEntity
/**
* @var string
*/
private string $internalNotes = '';
protected $internalNotes = '';

/**
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<pid>1</pid>
<title>Earl Grey</title>
<description>Fresh and hot.</description>
<internal_notes>Very good!</internal_notes>
</tx_tea_domain_model_product_tea>
<tx_tea_domain_model_product_tea>
<uid>2</uid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function findByUidForExistingRecordReturnsModelWithData(): void
self::assertNotNull($model);
self::assertSame('Earl Grey', $model->getTitle());
self::assertSame('Fresh and hot.', $model->getDescription());
self::assertSame('Very good!', $model->getInternalNotes());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ext_tables.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE tx_tea_domain_model_product_tea (
title varchar(255) DEFAULT '' NOT NULL,
description varchar(2000) DEFAULT '' NOT NULL,
internalNotes varchar(2000) DEFAULT '' NOT NULL,
internal_notes varchar(2000) DEFAULT '' NOT NULL,
image int(11) unsigned DEFAULT '0' NOT NULL
);

0 comments on commit a434e56

Please sign in to comment.