Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHRAS-3976 BasketElements table add column and index #4436

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion lib/Alchemy/Phrasea/Model/Entities/BasketElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
use record_adapter;

/**
* @ORM\Table(name="BasketElements", uniqueConstraints={@ORM\UniqueConstraint(name="unique_recordcle", columns={"basket_id","sbas_id","record_id"})})
* @ORM\Table(name="BasketElements",
* uniqueConstraints={
* @ORM\UniqueConstraint(name="unique_recordcle", columns={"basket_id","sbas_id","record_id"})
* },
* indexes={
* @ORM\Index(name="vote_expired", columns={"vote_expired"})
* }
* )
* @ORM\Entity(repositoryClass="Alchemy\Phrasea\Model\Repositories\BasketElementRepository")
*/
class BasketElement
Expand Down Expand Up @@ -70,6 +77,11 @@ class BasketElement
*/
private $basket;

/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $vote_expired;

/**
* Constructor
*/
Expand Down Expand Up @@ -168,6 +180,29 @@ public function getOrd()
return $this->ord;
}

/**
* Get vote_expired
*
* @return DateTime
*/
public function getVoteExpired()
{
return $this->vote_expired;
}

/**
* Set vote_expired
*
* @param DateTime $voteExpired
* @return self
*/
public function setVoteExpired(DateTime $voteExpired)
{
$this->vote_expired = $voteExpired;

return $this;
}

/**
* Set created
*
Expand Down
76 changes: 0 additions & 76 deletions lib/classes/patch/418RC8PHRAS3768.php

This file was deleted.