Skip to content

Commit

Permalink
feat: Migrate Node::status to NodeStatus enum, reduced int to smallin…
Browse files Browse the repository at this point in the history
…t when possible
  • Loading branch information
roadiz-ci committed Dec 4, 2024
1 parent 16ed070 commit 5856f37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Core/AbstractEntities/AbstractField.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace RZ\Roadiz\Core\AbstractEntities;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use RZ\Roadiz\Utils\StringHandler;
Expand Down Expand Up @@ -332,7 +333,11 @@ abstract class AbstractField extends AbstractPositioned
protected ?string $defaultValues = null;

#[
ORM\Column(type: 'integer'),
ORM\Column(
type: Types::SMALLINT,
nullable: false,
options: ['default' => AbstractField::STRING_T]
),
Serializer\Groups(['node_type', 'setting']),
SymfonySerializer\Groups(['node_type', 'setting']),
Serializer\Type('int'),
Expand Down

0 comments on commit 5856f37

Please sign in to comment.