mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Fixed index on entry.uuid and changed uuid field type
This commit is contained in:
parent
af131cb513
commit
8137515171
4 changed files with 12 additions and 4 deletions
|
@ -355,6 +355,9 @@ class EntryController extends Controller
|
|||
{
|
||||
$this->checkUserAction($entry);
|
||||
|
||||
$version = $this->getDoctrine()->getManager()->getConnection()->query('SELECT version();')->fetchColumn();
|
||||
var_dump($version);
|
||||
|
||||
return $this->render(
|
||||
'WallabagCoreBundle:Entry:entry.html.twig',
|
||||
['entry' => $entry]
|
||||
|
|
|
@ -22,8 +22,10 @@ use Wallabag\AnnotationBundle\Entity\Annotation;
|
|||
* @ORM\Table(
|
||||
* name="`entry`",
|
||||
* options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"},
|
||||
* indexes={@ORM\Index(name="created_at", columns={"created_at"})},
|
||||
* indexes={@ORM\Index(name="uuid", columns={"uuid"})}
|
||||
* indexes={
|
||||
* @ORM\Index(name="created_at", columns={"created_at"}),
|
||||
* @ORM\Index(name="uuid", columns={"uuid"})
|
||||
* }
|
||||
* )
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
* @Hateoas\Relation("self", href = "expr('/api/entries/' ~ object.getId())")
|
||||
|
@ -45,7 +47,7 @@ class Entry
|
|||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="uuid", type="text", nullable=true)
|
||||
* @ORM\Column(name="uuid", type="guid", nullable=true)
|
||||
*
|
||||
* @Groups({"entries_for_user", "export_all"})
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue