merge with modif in gitlab

This commit is contained in:
Julie Lenaerts 2021-08-03 14:48:15 +02:00
commit 3d2cc340a6
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @Table(schema="chill_asideactivity")
*/
final class AsideActivityCategory
{

View File

@ -21,7 +21,7 @@ final class Version20210706124644 extends AbstractMigration
{
$this->addSql('CREATE SEQUENCE AsideActivity_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE AsideActivityType_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE AsideActivityType_id_seq INCREMENT BY 1 MINVALUE 1 START 1000');
$this->addSql('CREATE TABLE AsideActivity (id INT NOT NULL, type_id INT NOT NULL, agent_id INT NOT NULL, createdAt TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, updatedAt TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, date TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, duration TIME(0) WITHOUT TIME ZONE DEFAULT NULL, location VARCHAR(100) DEFAULT NULL, note TEXT DEFAULT NULL, createdBy_id INT NOT NULL, updatedBy_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_E9FA2191C54C8C93 ON AsideActivity (type_id)');
$this->addSql('CREATE INDEX IDX_E9FA21913174800F ON AsideActivity (createdBy_id)');