Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
madis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Soluris
madis
Commits
8c237ca6
Commit
8c237ca6
authored
1 year ago
by
sebastien dupuy
Browse files
Options
Downloads
Patches
Plain Diff
Correctif pour les types de structures qui n existent plus et sur les civilités des legacy
parent
ec0644a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#46146
failed
1 year ago
Stage: cache
Stage: tests
Stage: quality-assurance
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migrations/Version20230421062109.php
+31
-0
31 additions, 0 deletions
migrations/Version20230421062109.php
with
31 additions
and
0 deletions
migrations/Version20230421062109.php
0 → 100644
+
31
−
0
View file @
8c237ca6
<?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
Version20230421062109
extends
AbstractMigration
{
public
function
getDescription
()
:
string
{
return
'Replace departmental_union type to syndicat and replace "m " to "m" for legal_civility for collectivity;'
;
}
public
function
up
(
Schema
$schema
):
void
{
$this
->
abortIf
(
'mysql'
!==
$this
->
connection
->
getDatabasePlatform
()
->
getName
(),
'Migration can only be executed safely on \'mysql\'.'
);
$this
->
addSql
(
'UPDATE user_collectivity SET type="syndicat" WHERE type="departmental_union"'
);
$this
->
addSql
(
'UPDATE user_collectivity SET legal_manager_civility = "m" WHERE legal_manager_civility = "m "'
);
}
public
function
down
(
Schema
$schema
):
void
{
$this
->
abortIf
(
'mysql'
!==
$this
->
connection
->
getDatabasePlatform
()
->
getName
(),
'Migration can only be executed safely on \'mysql\'.'
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment