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
6
Merge Requests
6
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
c358be44
Commit
c358be44
authored
Jan 18, 2023
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove content of buggy migration
parent
d321290e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
Version20220329182822.php
src/Migrations/Version20220329182822.php
+16
-11
No files found.
src/Migrations/Version20220329182822.php
View file @
c358be44
...
@@ -38,17 +38,22 @@ final class Version20220329182822 extends AbstractMigration implements Container
...
@@ -38,17 +38,22 @@ final class Version20220329182822 extends AbstractMigration implements Container
public
function
postUp
(
Schema
$schema
)
:
void
public
function
postUp
(
Schema
$schema
)
:
void
{
{
$presta
=
$this
->
em
->
getRepository
(
Prestataire
::
class
)
->
getPrestataireSolidoume
();
//EXPLANATION FOR CONTENT REMOVAL OF THIS VERSION :
// this up() migration is auto-generated, please modify it to your needs
//We have added new attributes in class Prestataire which cause this migration to fail
$account
=
new
AccountPrestataire
();
//Removing the content of this migration should not cause any issue because it does not
$account
//modify the database structure and because data will be purged at the next install step
->
setBalance
(
0
)
->
setCurrency
(
CurrencyEnum
::
CURRENCY_EMLC
)
// $presta = $this->em->getRepository(Prestataire::class)->getPrestataireSolidoume();
;
// // this up() migration is auto-generated, please modify it to your needs
$presta
->
addAccount
(
$account
);
// $account = new AccountPrestataire();
$this
->
em
->
persist
(
$account
);
// $account
$this
->
em
->
persist
(
$presta
);
// ->setBalance(0)
$this
->
em
->
flush
();
// ->setCurrency(CurrencyEnum::CURRENCY_EMLC)
// ;
// $presta->addAccount($account);
// $this->em->persist($account);
// $this->em->persist($presta);
// $this->em->flush();
}
}
public
function
down
(
Schema
$schema
)
:
void
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