Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
documentation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
amisdelaterre
documentation
Commits
afde16fb
Commit
afde16fb
authored
Dec 20, 2017
by
ben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update site_requetes sql.md
parent
3ebf73f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
informatique/admin/site_requetes sql.md
informatique/admin/site_requetes sql.md
+15
-1
No files found.
informatique/admin/site_requetes sql.md
View file @
afde16fb
### Transférer les anciennes données concernant les lieux vers la nouvelle table spip_gis
L'opération suivante associe tous les articles ayant le mot "Wégimont" dans leur champ "adresse" à l'objet gis 2.
```
INSERT INTO `spip_gis_liens` (id_gis, objet, id_objet)
SELECT '2', 'article', a.id_article
FROM spip_articles a
WHERE a.`lieu` LIKE '%Wégimont%'
```
### Transférer les évènements à un objet éditorial SPIP isolé, migration vers plugin Agenda
```
SELECT * FROM `spip_articles`
WHERE
`spip_articles`
.
`date_debut`
!= 'NULL' OR '0000-00-00 00:00:00';
\ No newline at end of file
WHERE `spip_articles`.`date_debut` != 'NULL' OR '0000-00-00 00:00:00';
```
\ No newline at end of file
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