예제 #1
0
        public void MigrateUp()
        {
            EnsureDatabaseExists();
            var runner = new EasyRunner(_connectionString, GetType().Assembly);

            runner.MigrateUp();
        }
        private void MigrateUp()
        {
            var runner = new EasyRunner(
                ConnectionString,
                GetType()
                .Assembly
                );

            try
            {
                runner.MigrateUp();
            }
            catch
            {
                _messageWriter.Write(
                    $"Failed to create history database; if the target is on an SMB share, try mounting with 'nobrl'"
                    );
                throw;
            }
        }