//MOOVE DB public static void UOWMooveDb() { Managers.Manager mngFrom1 = new Managers.Manager("dev_db", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); Managers.Manager mngFrom2 = new Managers.Manager("news_test5", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); //msk1-vm-indb01.nspk.ru //mR%mzJUGq1E Managers.Manager mngTo = new Managers.Manager("news_prod", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); //Managers.Manager mngTo=new Managers.Manager("news_prod","http://msk1-vm-indb01.nspk.ru:2480","root","mR%mzJUGq1E"); MooveDB.Migrate(mngTo, mngFrom1, true, true, false, false); MooveDB.Migrate(mngTo, mngFrom2, false, false, true, false); }
//MOOVE DB public static void UOWMooveDb() { Managers.Manager mngFrom1 = new Managers.Manager("dev_db", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); Managers.Manager mngFrom2 = new Managers.Manager("news_test5", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); //msk1-vm-indb01.nspk.ru //mR%mzJUGq1E Managers.Manager mngTo = new Managers.Manager("news_test_for_prod", "http://msk1-vm-ovisp02:2480", "root", "I9grekVmk5g"); //Managers.Manager mngTo=new Managers.Manager("news_prod","http://msk1-vm-indb01.nspk.ru:2480","root","mR%mzJUGq1E"); List <IOrientObjects.IOrientDefaultObject> classes_ = new List <IOrientObjects.IOrientDefaultObject>(); classes_.Add(new Note()); classes_.Add(new Authorship()); //migrate class names and shemas from actual DB MooveDB.Migrate(mngTo, mngFrom2, classes_, null, true, false); //migrate ral persons from actual person DB MooveDB.Migrate(mngTo, mngFrom1, null, classes_, false, false); }