Esempio n. 1
0
        static void Migrate070(string connectionString, string userUrl, string assetUrl, string inventoryUrl, string gridOwner)
        {
            Console.WriteLine("Migrating from OpenSim 0.7.0 to SimianGrid");

            if (!String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting user migrations");
                v070.UserMigration users = new v070.UserMigration(connectionString, userUrl, gridOwner);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(assetUrl))
            {
                Console.WriteLine("Starting asset migrations");
                v070.AssetMigration assets = new v070.AssetMigration(connectionString, assetUrl);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(inventoryUrl) && !String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting inventory migrations");
                v069.InventoryMigration inventories = new v069.InventoryMigration(connectionString, inventoryUrl, userUrl);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting friend migrations");
                v070.FriendMigration friends = new v070.FriendMigration(connectionString, userUrl);
                Console.WriteLine();
            }

            Console.WriteLine("Done.");
        }
        static void Migrate070(string connectionString, string userUrl, string assetUrl, string inventoryUrl, string gridOwner)
        {
            Console.WriteLine("Migrating from OpenSim 0.7.0 to SimianGrid");

            if (!String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting user migrations");
                v070.UserMigration users = new v070.UserMigration(connectionString, userUrl, gridOwner);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(assetUrl))
            {
                Console.WriteLine("Starting asset migrations");
                v070.AssetMigration assets = new v070.AssetMigration(connectionString, assetUrl);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(inventoryUrl) && !String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting inventory migrations");
                v069.InventoryMigration inventories = new v069.InventoryMigration(connectionString, inventoryUrl, userUrl);
                Console.WriteLine();
            }

            if (!String.IsNullOrEmpty(userUrl))
            {
                Console.WriteLine("Starting friend migrations");
                v070.FriendMigration friends = new v070.FriendMigration(connectionString, userUrl);
                Console.WriteLine();
            }

            Console.WriteLine("Done.");
        }