Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
migration.js 332 B
Newer Older
  • Learn to ignore specific revisions
  • db = new Mongo().getDB("kuadradodb");
    
    adminname = _getEnv("MONGO_INITDB_NON_ROOT_USERNAME");
    adminpwd = _getEnv("MONGO_INITDB_NON_ROOT_PASSWORD");
    
    db.auth(adminname, adminpwd);
    
    articles = db.getCollection("articles");
    
    articles.update({},
    
        { $set: { "metadata": { "description": "" } } },
    
        { upsert: false, multi: true }
    );