mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix column name
This commit is contained in:
parent
de262bbc28
commit
cc849e279d
@ -48,9 +48,9 @@ class Civility
|
|||||||
private array $name = [];
|
private array $name = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="float", nullable=true, options={"default": 0.0})
|
* @ORM\Column(type="float", name="ordering", nullable=true, options={"default": 0.0})
|
||||||
*/
|
*/
|
||||||
private float $order = 0.0;
|
private float $order = 0;
|
||||||
|
|
||||||
public function getAbbreviation(): array
|
public function getAbbreviation(): array
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,7 @@ final class Version20211213112628 extends AbstractMigration
|
|||||||
{
|
{
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void
|
||||||
{
|
{
|
||||||
$this->addSql('ALTER TABLE chill_main_civility DROP "order"');
|
$this->addSql('ALTER TABLE chill_main_civility DROP "ordering"');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDescription(): string
|
public function getDescription(): string
|
||||||
@ -31,6 +31,6 @@ final class Version20211213112628 extends AbstractMigration
|
|||||||
|
|
||||||
public function up(Schema $schema): void
|
public function up(Schema $schema): void
|
||||||
{
|
{
|
||||||
$this->addSql('ALTER TABLE chill_main_civility ADD "order" FLOAT DEFAULT 0.0');
|
$this->addSql('ALTER TABLE chill_main_civility ADD "ordering" FLOAT DEFAULT 0.0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user