Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
20ada015
Commit
20ada015
authored
Jan 24, 2023
by
Damien Moulard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of gl.cooperatic.fr:cooperatic/kohinos-tav into develop
parents
4bafcfee
f565c7cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
13 deletions
+24
-13
INSTALL.md
INSTALL.md
+8
-2
fixtures-tav-pro.yaml
fixtures/tavpro/fixtures-tav-pro.yaml
+0
-0
fixtures-tav.yaml
fixtures/tavtest/fixtures-tav.yaml
+0
-0
Version20220329182822.php
src/Migrations/Version20220329182822.php
+16
-11
No files found.
INSTALL.md
View file @
20ada015
...
...
@@ -82,9 +82,12 @@ Création des tables et des contraintes :
Charger les fixtures standards :
Pour une instance non TAV :
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=pro**
Pour une instance TAV :
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=tav**
**$ php bin/console hautelook:fixtures:load --purge-with-truncate --env=tavpro**
Vous obtiendrez cette erreur ci dessous, c'est normal !
...
...
@@ -94,9 +97,12 @@ There is no main category related to context: rubrique
**$ php bin/console sonata:media:fix-media-context**
Pour une instance non TAV :
**$ php bin/console hautelook:fixtures:load --append --env=pro**
Pour une instance TAV :
**$ php bin/console hautelook:fixtures:load --append --env=tav**
**$ php bin/console hautelook:fixtures:load --append --env=tavpro**
Supprimer le cache (si besoin)
...
...
fixtures/tavpro/fixtures-tav-pro.yaml
0 → 100644
View file @
20ada015
This diff is collapsed.
Click to expand it.
fixtures/tav/fixtures-tav.yaml
→
fixtures/tav
test
/fixtures-tav.yaml
View file @
20ada015
File moved
src/Migrations/Version20220329182822.php
View file @
20ada015
...
...
@@ -38,17 +38,22 @@ final class Version20220329182822 extends AbstractMigration implements Container
public
function
postUp
(
Schema
$schema
)
:
void
{
$presta
=
$this
->
em
->
getRepository
(
Prestataire
::
class
)
->
getPrestataireSolidoume
();
// this up() migration is auto-generated, please modify it to your needs
$account
=
new
AccountPrestataire
();
$account
->
setBalance
(
0
)
->
setCurrency
(
CurrencyEnum
::
CURRENCY_EMLC
)
;
$presta
->
addAccount
(
$account
);
$this
->
em
->
persist
(
$account
);
$this
->
em
->
persist
(
$presta
);
$this
->
em
->
flush
();
//EXPLANATION FOR CONTENT REMOVAL OF THIS VERSION :
//We have added new attributes in class Prestataire which cause this migration to fail
//Removing the content of this migration should not cause any issue because it does not
//modify the database structure and because data will be purged at the next install step
// $presta = $this->em->getRepository(Prestataire::class)->getPrestataireSolidoume();
// // this up() migration is auto-generated, please modify it to your needs
// $account = new AccountPrestataire();
// $account
// ->setBalance(0)
// ->setCurrency(CurrencyEnum::CURRENCY_EMLC)
// ;
// $presta->addAccount($account);
// $this->em->persist($account);
// $this->em->persist($presta);
// $this->em->flush();
}
public
function
down
(
Schema
$schema
)
:
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment