Pārlūkot izejas kodu

webpack et routes caracole

feature/ticket
Guillaume pirms 3 gadiem
vecāks
revīzija
392631ff1c
5 mainītis faili ar 16 papildinājumiem un 73 dzēšanām
  1. +4
    -0
      config/routes.yaml
  2. +0
    -35
      migrations/Version20210520093811.php
  3. +0
    -31
      migrations/Version20210603092517.php
  4. +11
    -7
      migrations/Version20210603142706.php
  5. +1
    -0
      webpack.config.js

+ 4
- 0
config/routes.yaml Parādīt failu

@@ -3,6 +3,10 @@ sov_bundle:
resource: "@LcSovBundle/Resources/config/routes.yaml"
prefix: /

carac_bundle:
resource: "@LcCaracoleBundle/Resources/config/routes.yaml"
prefix: /

artgris_bundle_file_manager:
resource: "@ArtgrisFileManagerBundle/Controller"
type: annotation

+ 0
- 35
migrations/Version20210520093811.php Parādīt failu

@@ -1,35 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210520093811 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE page ADD parent_id INT DEFAULT NULL, DROP date_event, DROP date_time_event, DROP message, DROP show_inmenu');
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620727ACA70 FOREIGN KEY (parent_id) REFERENCES page (id)');
$this->addSql('CREATE INDEX IDX_140AB620727ACA70 ON page (parent_id)');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620727ACA70');
$this->addSql('DROP INDEX IDX_140AB620727ACA70 ON page');
$this->addSql('ALTER TABLE page ADD date_event DATE DEFAULT NULL, ADD date_time_event DATETIME DEFAULT NULL, ADD message LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD show_inmenu TINYINT(1) DEFAULT NULL, DROP parent_id');
}
}

+ 0
- 31
migrations/Version20210603092517.php Parādīt failu

@@ -1,31 +0,0 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210603092517 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE section ADD color VARCHAR(32) NOT NULL');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE section DROP color');
}
}

migrations/Version20210603090526.php → migrations/Version20210603142706.php Parādīt failu

@@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210603090526 extends AbstractMigration
final class Version20210603142706 extends AbstractMigration
{
public function getDescription(): string
{
@@ -20,13 +20,15 @@ final class Version20210603090526 extends AbstractMigration
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620727ACA70');
$this->addSql('DROP INDEX IDX_140AB620727ACA70 ON page');
$this->addSql('ALTER TABLE page ADD merchant_id INT NOT NULL, ADD content LONGTEXT DEFAULT NULL, ADD section_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB6206796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)');
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620D823E37A FOREIGN KEY (section_id) REFERENCES section (id)');
$this->addSql('CREATE INDEX IDX_140AB6206796D554 ON page (merchant_id)');
$this->addSql('CREATE INDEX IDX_140AB620D823E37A ON page (section_id)');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6496796D554');
$this->addSql('DROP INDEX IDX_8D93D6496796D554 ON user');
$this->addSql('ALTER TABLE user CHANGE merchant_id favorite_merchant_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649A4849017 FOREIGN KEY (favorite_merchant_id) REFERENCES merchant (id)');
$this->addSql('CREATE INDEX IDX_8D93D649A4849017 ON user (favorite_merchant_id)');
$this->addSql('ALTER TABLE user_merchant ADD current_admin_section_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E1FE54D809 FOREIGN KEY (current_admin_section_id) REFERENCES section (id)');
$this->addSql('CREATE INDEX IDX_9426C1E1FE54D809 ON user_merchant (current_admin_section_id)');
@@ -39,9 +41,11 @@ final class Version20210603090526 extends AbstractMigration
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620D823E37A');
$this->addSql('DROP INDEX IDX_140AB6206796D554 ON page');
$this->addSql('DROP INDEX IDX_140AB620D823E37A ON page');
$this->addSql('ALTER TABLE page DROP merchant_id, DROP content, CHANGE section_id parent_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620727ACA70 FOREIGN KEY (parent_id) REFERENCES page (id)');
$this->addSql('CREATE INDEX IDX_140AB620727ACA70 ON page (parent_id)');
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649A4849017');
$this->addSql('DROP INDEX IDX_8D93D649A4849017 ON user');
$this->addSql('ALTER TABLE user CHANGE favorite_merchant_id merchant_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D6496796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)');
$this->addSql('CREATE INDEX IDX_8D93D6496796D554 ON user (merchant_id)');
$this->addSql('ALTER TABLE user_merchant DROP FOREIGN KEY FK_9426C1E1FE54D809');
$this->addSql('DROP INDEX IDX_9426C1E1FE54D809 ON user_merchant');
$this->addSql('ALTER TABLE user_merchant DROP current_admin_section_id');

+ 1
- 0
webpack.config.js Parādīt failu

@@ -48,6 +48,7 @@ Encore
.addEntry('adminlte-sort', './Lc/SovBundle/Resources/assets/app/adminlte/sort/app.sort.js')
.addEntry('adminlte-field-filemanager', './Lc/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js')
.addEntry('adminlte-field-collection', './Lc/SovBundle/Resources/assets/app/adminlte/field/collection/app.collection.js')
.addEntry('common-switch-merchant', './Lc/CaracoleBundle/Resources/assets/app/switchmerchant/app.switchmerchant.js')

// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
.enableStimulusBridge('./assets/controllers.json')

Notiek ielāde…
Atcelt
Saglabāt