Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Server
Commits
90e106f5
Commit
90e106f5
authored
2 years ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
feat(digital helps): rename "Accompagnement CAF" to "CAF"
parent
9f2cb1b9
No related branches found
Branches containing commit
No related tags found
2 merge requests
!177
1.17.0
,
!142
rename "Accompagnement CAF" to "CAF"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/migrations/scripts/1652274718695-rename-caf.ts
+32
-0
32 additions, 0 deletions
src/migrations/scripts/1652274718695-rename-caf.ts
with
32 additions
and
0 deletions
src/migrations/scripts/1652274718695-rename-caf.ts
0 → 100644
+
32
−
0
View file @
90e106f5
import
{
Db
}
from
'
mongodb
'
;
import
{
getDb
}
from
'
../migrations-utils/db
'
;
export
const
up
=
async
()
=>
{
const
db
:
Db
=
await
getDb
();
await
db
.
collection
(
'
categoriesaccompagnements
'
)
.
updateOne
(
{
id
:
'
proceduresAccompaniment
'
,
'
modules.id
'
:
'
accompagnantCaf
'
},
{
$set
:
{
'
modules.$.text
'
:
'
CAF
'
}
}
);
console
.
log
(
'
Updated done: "Accompagnement CAF" to "CAF" from collection "categoriesAccompanements" with document id "proceduresAccompaniment"
'
);
};
export
const
down
=
async
()
=>
{
const
db
:
Db
=
await
getDb
();
await
db
.
collection
(
'
categoriesaccompagnements
'
)
.
updateOne
(
{
id
:
'
proceduresAccompaniment
'
,
'
modules.id
'
:
'
accompagnantCaf
'
},
{
$set
:
{
'
modules.$.text
'
:
'
Accompagnement CAF
'
}
}
);
console
.
log
(
'
Downgraded "CAF" to "Accompagnement CAF" from collection "categoriesAccompanements" with document id "proceduresAccompaniment"
'
);
};
This diff is collapsed.
Click to expand it.
Hugo SUBTIL
@ext.sopra.husubtil
mentioned in merge request
pamn_client!292 (merged)
·
2 years ago
mentioned in merge request
pamn_client!292 (merged)
mentioned in merge request pamn_client!292
Toggle commit list
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