Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Application web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Agroclim
AgroMetInfo
Application web
Merge requests
!146
Resolve "Proposition changement - Intitulés "Périodes""
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Proposition changement - Intitulés "Périodes""
96-proposition-changement-intitules-periodes
into
main
Overview
0
Commits
2
Pipelines
3
Changes
3
Merged
Olivier Maury
requested to merge
96-proposition-changement-intitules-periodes
into
main
1 month ago
Overview
0
Commits
2
Pipelines
3
Changes
3
Expand
Closes
#96 (closed)
0
0
Merge request reports
Compare
main
version 1
6aa120d2
1 month ago
main (base)
and
latest version
latest version
88309f2b
2 commits,
1 month ago
version 1
6aa120d2
2 commits,
1 month ago
3 files
+
31
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
sql/migration.sql
+
25
−
0
Options
@@ -219,6 +219,31 @@ END;
$
BODY
$
language
plpgsql
;
--
-- #96 : periods
--
CREATE
OR
REPLACE
FUNCTION
upgrade20250116
()
RETURNS
boolean
AS
$
BODY
$
BEGIN
CREATE
TEMPORARY
TABLE
IF
NOT
EXISTS
tmp_translation
(
key
VARCHAR
,
locale
VARCHAR
,
translation
VARCHAR
);
INSERT
INTO
tmp_translation
(
key
,
locale
,
translation
)
VALUES
(
'summer'
,
'en'
,
'Summer crop (01/04 − 15/10)'
),
(
'summer'
,
'fr'
,
'Culture d’été (01/04 − 15/10)'
),
(
'winter'
,
'en'
,
'Winter crop (31/10 − 31/8)'
),
(
'winter'
,
'fr'
,
'Culture d’hiver (31/10 − 31/8)'
);
UPDATE
i18n
SET
translation
=
t
.
translation
FROM
i18nkey
AS
k
,
locale
AS
l
,
tmp_translation
AS
t
WHERE
i18n
.
i18nkey
=
k
.
id
AND
i18n
.
locale
=
l
.
id
AND
l
.
languagetag
=
t
.
locale
AND
k
.
string
=
t
.
key
;
RETURN
true
;
END
;
$
BODY
$
language
plpgsql
;
---
--
-- Keep this call at the end to apply migration functions.
Loading