-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: tuile modeles recherche contenant des tags html (#1396)
* feat: update description -> intro * fix: ajout des champs dans le document * chore: clean * fix: creation models * Revert "fix: creation models" This reverts commit 8c02af0. --------- Co-authored-by: Victor <[email protected]>
- Loading branch information
Showing
13 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...grations/default/1716296327667_alter_table_model_models_alter_column_description/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "model"."models" rename column "intro" to "description"; |
1 change: 1 addition & 0 deletions
1
...migrations/default/1716296327667_alter_table_model_models_alter_column_description/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "model"."models" rename column "description" to "intro"; |
5 changes: 5 additions & 0 deletions
5
...hasura/migrations/default/1716301694848_rename-document-modele-description-intro/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- On renomme intro en description | ||
update documents set document = jsonb_set(document #- '{intro}', | ||
'{description}', | ||
document#>'{intro}') | ||
where source = 'modeles_de_courriers'; |
9 changes: 9 additions & 0 deletions
9
...s/hasura/migrations/default/1716301694848_rename-document-modele-description-intro/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- On renomme description en intro | ||
update documents set document = jsonb_set(document #- '{description}', | ||
'{intro}', | ||
document#>'{description}') | ||
where source = 'modeles_de_courriers'; | ||
|
||
--On Remet un champs description avec le contenu de la meta_description | ||
update documents set document = jsonb_set(document, '{description}', to_jsonb(meta_description)) | ||
where source = 'modeles_de_courriers'; |