doctrine:schema:update doesn't respect column order

前端 未结 2 702
粉色の甜心
粉色の甜心 2020-12-31 18:06

I have this Entity in Symfony2 :



        
2条回答
  •  耶瑟儿~
    2020-12-31 18:35

    If you don't want to drop/create the table, you can use @columnDefinition attribute and define the column definition yourself.

    /**
     * @var integer
     *
     * @ORM\Column(type="integer", columnDefinition="INT NOT NULL AFTER `user_id`")
     */
    private $superbanana;
    

提交回复
热议问题