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
845c7003
Commit
845c7003
authored
Jan 07, 2025
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set a default value to presta reconversion frequency
parent
c715bd64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
Prestataire.php
src/Entity/Prestataire.php
+2
-2
Version20250107095819.php
src/Migrations/Version20250107095819.php
+31
-0
No files found.
src/Entity/Prestataire.php
View file @
845c7003
...
...
@@ -342,10 +342,10 @@ class Prestataire extends AccountableObject implements AccountableInterface
* Fréquence de reconversion en cas d'automatisation des reconversions.
*
* @var string
* @ORM\Column(name="reconversionFrequency", type="string", length=50, nullable=true)
* @ORM\Column(name="reconversionFrequency", type="string", length=50, nullable=true
, options={"default" : "once_a_month"}
)
* @Groups({"read", "write"})
*/
protected
$reconversionFrequency
;
protected
$reconversionFrequency
=
"once_a_month"
;
/**
* @var ArrayCollection|AccountPrestataire[]
...
...
src/Migrations/Version20250107095819.php
0 → 100644
View file @
845c7003
<?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
Version20250107095819
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 prestataire CHANGE reconversionFrequency reconversionFrequency VARCHAR(50) DEFAULT \'once_a_month\''
);
}
public
function
down
(
Schema
$schema
)
:
void
{
// this down() migration is auto-generated, please modify it to your needs
$this
->
addSql
(
'ALTER TABLE prestataire CHANGE reconversionFrequency reconversionFrequency VARCHAR(50) CHARACTER SET utf8mb3 DEFAULT NULL COLLATE `utf8mb3_general_ci`'
);
}
}
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