Example #1
0
        static void Migrate069(string connectionString, string userUrl, string assetUrl, string inventoryUrl, string gridOwner)
        {
            Console.WriteLine("Migrating from OpenSim 0.6.9 to SimianGrid");

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

            if (!String.IsNullOrEmpty(assetUrl))
            {
                Console.WriteLine("Starting asset migrations");
                v069.AssetMigration assets = new v069.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");
                v069.FriendMigration friends = new v069.FriendMigration(connectionString, userUrl);
                Console.WriteLine();
            }

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

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

            if (!String.IsNullOrEmpty(assetUrl))
            {
                Console.WriteLine("Starting asset migrations");
                v069.AssetMigration assets = new v069.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");
                v069.FriendMigration friends = new v069.FriendMigration(connectionString, userUrl);
                Console.WriteLine();
            }

            Console.WriteLine("Done.");
        }