Try to fix migrations

parent 757706a9
......@@ -8,4 +8,7 @@ gulp build
gulp production
php bin/console db:migrate
sh cache_clear.sh
sleep 5
chmod 777 -R var/
sleep 1
chmod 777 -R var/
\ No newline at end of file
......@@ -110,3 +110,5 @@ db.Configuration.updateMany( { } , { $set: { 'defautTileLayer': DBRef("TileLayer
// Reset duplicates
db.Element.updateMany({moderationState: 4}, {$set: {moderationState: 0, isDuplicateNode: false}, $unset: { potentialDuplicates: 1} })
db.MigrationState.updateMany({}, { $set: { migrationsIndex: 0}})
\ No newline at end of file
......@@ -20,12 +20,12 @@ class MigrationCommand extends GoGoAbstractCommand
// -----------------------------------------------------------------
public $migrations = [
// v2.4.6
'db.TileLayer.updateMany({"name":"cartodb"}, {$set: {"attribution":"&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> &copy; <a href=\"http://cartodb.com/attributions\">CartoDB</a>"}})',
'db.TileLayer.updateMany({"name":"hydda"}, {$set: {"attribution":"Tiles courtesy of <a href=\"http://openstreetmap.se/\" target=\"_blank\">OpenStreetMap Sweden</a> &mdash; Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"wikimedia"}, {$set: {"attribution":"<a href=\"https://wikimediafoundation.org/wiki/Maps_Terms_of_Use\">Wikimedia</a> | Map data © <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a>"}})',
'db.TileLayer.updateMany({"name":"lyrk"}, {$set: {"attribution":"&copy Lyrk | Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"osmfr"}, {$set: {"attribution":"&copy; Openstreetmap France | &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"stamenWaterColor"}, {$set: {"attribution":"Map tiles by <a href=\"http://stamen.com\">Stamen Design</a>, <a href=\"http://creativecommons.org/licenses/by/3.0\">CC BY 3.0</a> &mdash; Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
"db.TileLayer.updateMany({'name':'cartodb'}, {\$set: {'attribution':'&copy; <a href=\'http://www.openstreetmap.org/copyright\'>OpenStreetMap</a> &copy; <a href=\'http://cartodb.com/attributions\'>CartoDB</a>'}})",
"db.TileLayer.updateMany({'name':'hydda'}, {\$set: {'attribution':'Tiles courtesy of <a href=\'http://openstreetmap.se/\' target=\'_blank\'>OpenStreetMap Sweden</a> &mdash; Map data &copy; <a href=\'http://www.openstreetmap.org/copyright\'>OpenStreetMap</a>'}})",
"db.TileLayer.updateMany({'name':'wikimedia'}, {\$set: {'attribution':'<a href=\'https://wikimediafoundation.org/wiki/Maps_Terms_of_Use\'>Wikimedia</a> | Map data © <a href=\'https://www.openstreetmap.org/copyright\'>OpenStreetMap contributors</a>'}})",
"db.TileLayer.updateMany({'name':'lyrk'}, {\$set: {'attribution':'&copy Lyrk | Map data &copy; <a href=\'http://www.openstreetmap.org/copyright\'>OpenStreetMap</a>'}})",
"db.TileLayer.updateMany({'name':'osmfr'}, {\$set: {'attribution':'&copy; Openstreetmap France | &copy; <a href=\'http://www.openstreetmap.org/copyright\'>OpenStreetMap</a>'}})",
"db.TileLayer.updateMany({'name':'stamenWaterColor'}, {\$set: {'attribution':'Map tiles by <a href=\'http://stamen.com\'>Stamen Design</a>, <a href=\'http://creativecommons.org/licenses/by/3.0\'>CC BY 3.0</a> &mdash; Map data &copy; <a href=\'http://www.openstreetmap.org/copyright\'>OpenStreetMap</a>'}})",
];
public $commands = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment